我試圖讓我的github回購克隆我的生活網站第一次。克隆github回購網站,但得到:權限被拒絕(publickey)。致命的:遠程端意外掛起
我把我的公鑰了我的Dreamhost的服務器的主目錄從我的本地終端,像這樣:
cat ~/.ssh/id_rsa.pub | ssh [email protected] 'cat >> .ssh/authorized_keys'
這並沒有引起任何錯誤,我可以看到在遠程服務器上我的鑰匙,但我當嘗試ssh方式連接到我的遠程服務器後,克隆GitHub庫:
git clone [email protected]:gituser/myrepo.git myserver.com/mysite
我得到:
Cloning into mysite...
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
我可以從我的本地文件推送到github就好了(經過一天的調整;))。
如何從github克隆到我的遠程服務器(live site)?
這個答案應該可以幫到你。 [http://stackoverflow.com/a/88562/816157][1] [1]:http://stackoverflow.com/a/88562/816157 – Ken 2012-07-26 15:15:41