Uploaded to Heroku many times before and don't know what's wrong this time-- maybe it's because I'm using public internet?
Anyway, so I added a new public key with
>heroku keys:add
Found existing public key: C:/Users/Chris/.ssh/id_rsa.pub
Uploading SSH public key C:/Users/Chris/.ssh/id_rsa.pub...done
>git push heroku master
Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Why can't I push to heroku?
I checked my keys
heroku keys
and my terminal came up correctly, so it should be working. Anyone shed some light?
Maybe the ssh session doesn't know where to find the private key associated to your public key, which can happen if %HOME%
isn't defined to C:/Users/Chris
.
(and remember, HOME
isn't defined by default on Windows)
You can:
%HOME%/.ssh/config
fileHost heroku Hostname heroku.com Port 22 IdentitiesOnly yes IdentityFile /C/Users/Chris/.ssh/id_rsa # location and name of your private key TCPKeepAlive yes User git
.ssh
and the keys).git clone heroku:yourRepo
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With