1

困惑。请看下面

$ 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.

任何想法如何解决问题?

4

1 回答 1

5

好像你还没有上传你的公钥到 Heroku,推送前请尝试以下操作:

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

请注意,这id_rsa.pub是您的公钥,在您的机器中它可能会以不同的方式命名。

于 2013-04-29T14:32:55.293 回答