ssh 에서 git pull하고 싶을때

YEONGHUN KO·2024년 1월 8일
0

GIT

목록 보기
2/2
post-thumbnail

oracle cloud ssh에서 git pull하려고 했더니 마주하는 에러

[ubuntu@instance-20240108-1708]$ git push origin master

Permission denied (publickey).fatal: Could not read from remote repository.

Please make sure you have the correct access rightsand the repository exists.

$ ssh-keygen -t rsa -C "{your-github-email}"
// 이후 엔터 3번
cat ~/.ssh/id_rsa.pub

// rsa키가 나타날것임
// ex>
// ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDLBwIxMRpWvTW2M81qjh3Otio3Ygotmc68k6sbLQ9jkcRh48SkHpdhMo/7i06z4aDsM4sb/bKq4kDH+fpv6IcCgc5pB4nDXZrXBHHe7WOZnamfNA4ki2DlDp.....

그리고 github -> settings -> ssh and gpg keys에 추가하면 끝!

출처: https://dongza.tistory.com/15 [눈누난나:티스토리]

profile
'과연 이게 최선일까?' 끊임없이 생각하기

0개의 댓글