본문 바로가기
Programming/Git

git pull without login - for gitlab

by Chan_찬 2020. 6. 9.
728x90

public key & private key 생성

gitlab을 위한 ssh key는 옵션을 줘야 한다

옵션 -t 타입 지정: rsa
-C comment 기록: "gitlab"
-b 비트수 지정: 기본 2048, gitlab은 4096

$ ssh-keygen -t rsa -C "gitlab" -b 4096

$ cat ~/.ssh/id_rsa.pub

public key: id_rsa.pub
private key: id_rsa

728x90
728x90

'Programming > Git' 카테고리의 다른 글

git stash - 작업 임시 저장  (0) 2020.06.16
git pull overwrite  (0) 2020.06.10
git diff patch - 패치 생성/적용  (0) 2020.06.08
git add 취소  (0) 2020.06.08
git push하기 - terminal  (0) 2016.04.01
Buy me a coffeeBuy me a coffee

댓글