1. 程式人生 > >Git使用SSH提交代碼到server出現 permission denied (publickey).

Git使用SSH提交代碼到server出現 permission denied (publickey).

space lin none ssh-key denied .net 過程 geo rep

在GitBush中向已經存在的Repository提交README.md改動。

命令例如以下:

touch README.md git init git add README.md git commit -m "first commit" git remote add origin [email protected]:yunfuyiren/Test.gitgit push -u origin master 出現例如以下錯誤:
技術分享
技術分享
找了半天原因原來是沒有安裝SSH Key。 首先須要在client上安裝SSH Key,此外還須要在遠程github服務端,個人設置中加入SSHKey。


詳細操作過程例如以下帖: https://help.github.com/articles/generating-ssh-keys

Git使用SSH提交代碼到server出現 permission denied (publickey).