2013-04-29 114 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

相关问题