2013-04-29 117 views
1

困惑。請看下面無法使用Git Bash將Rails應用程序推送到Heroku

$ git push heroku master 
Could not create directory '/c/Users/Dipak/Git/.ssh'. 
The authenticity of host 'heroku.com (50.19.85.156)' can't be established. 
RSA key fingerprint is 8b:48:5e:67:0e:c9:16:47:32:f2:87:0c:1f:c8:60:ad. 
Are you sure you want to continue connecting (yes/no)? yes 
Failed to add the host to the list of known hosts (/c/Users/Dipak/Git/.ssh/known_hosts). 
Permission denied (publickey). 
fatal: Could not read from remote repository. 

任何想法如何去解決這個問題?

回答

5

看來你沒有上傳你的公鑰的Heroku,請嘗試推前了以下內容:

heroku keys:add ~/.ssh/id_rsa.pub 

注意id_rsa.pub是你的公鑰,在你的機器可能有不同的名稱。

+0

看起來你也沒有寫入'/c/Users/Dipak/Git/.ssh'的權限。此外,嘗試使用'--verbose'標誌運行以獲得更多git輸出:'git push --verbose heroku master' – jordelver 2013-04-29 16:42:48

+0

謝謝..我糾正了.. ..但是我仍然無法'推'Rails文件夾(\ iQvoc-1)到Heroku,請參閱以下步驟, – user2332431 2013-04-30 09:26:28

相關問題