Edison에 git push 안되는 문제

2017/10/10

Edison에서 git을 통해 clone은 되는데 push가 안되는 문제점이 있었습니다.

$ git push
error: The requested URL returned error: 403 Forbidden while accessing https://github.com/shanmdphd/spbook.git/info/refs
fatal: HTTP request failed

원래 안되는 줄 알고 한동안 bulb에서 접속을 안하고 활용도가 떨어졌으나 이 글을 통해서 해결 하였습니다.

ssh-keygen 명령어를 통해 key를 만들고 만들어진 키를 cat ~/.ssh/id_rsa.pub를 통해 확인한 후 그것을 github 세팅에서 SSH key를 추가하면 됩니다.

$ ssh-keygen -t rsa -b 2048 -N ""
Generating public/private rsa key pair.
Enter file in which to save the key (/home/shan/.ssh/id_rsa):
Created directory '/home/shan/.ssh'.
Your identification has been saved in /home/shan/.ssh/id_rsa.
Your public key has been saved in /home/shan/.ssh/id_rsa.pub.
The key fingerprint is: ---
The key's randomart image is: ---

$ cat ~/.ssh/id_rsa.pub
ssh-rsa ---

성공!

관련글