2013-10-09 38 views
0

我會做我的第一步與Git。我也有一個豆莖帳戶。我的IDE是phpstorm。嘗試檢查我的連接publickey錯誤(豆稈ssh密鑰)

我通過安裝程序將它安裝在我的Mac上=>/usr/local/git安裝成功。 之後,我生成一個ssh密鑰並複製到我的beanstalk帳戶中。 Here's the tutorial

The authenticity of host 'myaccount.beanstalkapp.com (204.232.132.2)' can't be established. 
RSA key fingerprint is 30:9a:97:f3:19:4f:d1:6e:28:76:9e:e7:d1:df:2c:31. 
Are you sure you want to continue connecting (yes/no)? 

我輸入 '是',然後..

Warning: Permanently added 'myaccount.beanstalkapp.com' (RSA) to the list of known hosts. 
Permission denied (publickey). 

我的公鑰是在同一文件夾的.ssh/beanstalk.pub

什麼是我的問題嗎?

我試圖克隆我的倉庫中phpStorm:

[email protected]:/phpstorm_git.git 

,但它不工作。

+0

會'git的@ myaccount.beanstalkapp.com/phpstorm_git.git'更好地工作? (不含':') – VonC

+0

嘗試使用'ssh -v git @ myaccount.beanstalkapp.com'來檢查它是否與SSH連接有問題,或者是存儲庫的路徑。 –

+0

檢查'myaccount.beanstalkapp.com'是否被添加到'〜/ .ssh/known_hosts' ...「Permission denied(publickey)」。「這裏的消息很奇怪。 –

回答

0

您只需輸入yes並按ENTER鍵即可將您的帳戶的主機名accountname.beanstalkapp.com添加到known_hosts文件,但由於它在〜/ .ssh中將known_hosts文件刪除,所以您只需使用:sudo [email protected]:/phpstorm_git.git

1

這可能會有助於其他人登陸相同的情況。我有同樣的問題,這篇文章幫助我解決它。

https://stackoverflow.com/a/20537879/3847469

基本上,我已經讓SSH流量,但我的魔豆實例未與我產生的密鑰對相關。上面的文章描述瞭如何做到這一點。之後我就可以登錄了。