ssh-keygen
cat .ssh/id_rsa.pub
위 명령어에서 나온 값을 아래 그림과 같은 gitlab/github
의 ssh key 등록란에 적으면 된다.
설정을 마저 해준다.
git config --global user.name "JunHa Hwang"
git config --global user.email "hwang_junha@naver.com"
아래와 같이 Warning이 나올 수 있다.
Are you sure you want to continue connecting (yes/no/[fingerprint])?
이는 해당 clone하는 곳의 host를 본인의 시스템에 등록하는 과정으로 yes
를 입력하면 된다. 그러면 아래와 같이 나온다.
Warning: Permanently added 'gitlab.com' (ECDSA) to the list of known hosts.