SSH Error: "Not a RSA1 key file ~/.ssh/id_rsa.", "key_type_from_name: unknown key type '-----BEGIN'"
I had the very same problem (not on heroku) but on my own server.
Try to look in /var/log/auth.logmy ~/.ssh/authorized_keys file was ownd by the wrong user
If I try
ssh -vvv myloginname@heroku.com
I get this:
debug2: key_type_from_name: unknown key type '-----END'...debug3: check_host_in_hostfile: filename ~/.ssh/known_hostsdebug3: check_host_in_hostfile: match line 1debug3: check_host_in_hostfile: filename ~/.ssh/known_hostsdebug3: check_host_in_hostfile: match line 2debug1: Host 'heroku.com' is known and matches the RSA host key.debug1: Found key in ~/.ssh/known_hosts:1debug2: bits set: 500/1024debug1: ssh_rsa_verify: signature correct
Do you have a known_hosts file in ~/.ssh/
? Mine contains entries for heroku.com,50.19.85.154 ssh-rsa
and 50.19.85.132 ssh-rsa
. Do you have those?
If you do which ssh-keygen
, what version of ssh-keygen is being run? Is it the proper copy that should be getting used/that was installed by the Heroku Toolbelt? If not, perhaps the steps from the Heroku Managing Keys article are not creating a valid key?