
ssh-keygen -t rsa -b 4096 -C "your_email@example.com"
Start the SSH agent:
eval "$(ssh-agent -s)"
add the new key:
ssh-add ~/.ssh/id_rsa
cat (short for "concatenate")
![]()
cat ~/.ssh/id_rsa.pub
copy印出來的key備用
github:
右上頭像的settings


前面cat出來的key整個貼上去
包含開頭ssh-rsa到結尾email

github in project :

取SSH網址塞進專案裡
git remote set-url origin git@github.com:xxxxxxx
測試
ssh -T git@github.com
![]()
請先 登入 以發表留言。