I had a public key established with Heroku, but git push kept failing.
Finally found this answer on StackOverflow: http://stackoverflow.com/questions/4269922/permission-denied-publickey-when-deploying-heroku-code-fatal-the-remote-end
The solution was to modify the ~/.ssh/config file
This problem was messing with me for a few days.
This this might help.
1) Find out what keys you have in Heroku now.
$ heroku keys
=== 1 key for joe@example.com
ssh-dss AAAAB8NzaC...DVj3R4Ww== joe@workstation.local
2) Build a ~/.ssh/config file:
$ sudo vim ~/.ssh/config
Edit with this info
Host heroku.com
Hostname heroku.com
Port 22
IdentitiesOnly yes
IdentityFile ~/.ssh/ssh-dss # location and name of your private key
TCPKeepAlive yes
User joe@workstation.local
No comments:
Post a Comment