无法使用Git Bash将Rails应用程序推送到Heroku

时间:2013-04-29 14:28:56

标签: ruby-on-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.

任何想法如何解决问题?

1 个答案:

答案 0 :(得分:5)

您似乎没有将公钥上传到Heroku,请在推送之前尝试以下操作:

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

请注意,id_rsa.pub是您的公钥,在您的计算机中,它的名称可能不同。