user2332431
user2332431

Reputation: 11

not able to push a Rails App to Heroku using Git Bash

Puzzled. Please see below

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

Any ideas how to go about fixing the problem?

Upvotes: 1

Views: 761

Answers (1)

Luís Ramalho
Luís Ramalho

Reputation: 10198

It seems that you have not uploaded your public key to Heroku, please try the following before pushing:

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

Note that id_rsa.pub is your public key, in your machine it might be named differently.

Upvotes: 5

Related Questions