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 [눈누난나:티스토리]