views:

345

answers:

3

I am trying to access my heroku app from work (windows machine).

I installed cygwin on the machine and generated ssh-key as well. However, I get the below error:

C:>heroku keys:add "C:\cygwin\home\4541450\[email protected]" Uploading ssh public key C:\cygwin\home\4541450\[email protected] Enter your Heroku credentials. Email: [email protected] Password: Uploading ssh public key C:\cygwin\home\c54550\[email protected] ! Contents Invalid public key / Contents Invalid public key / Fingerprint can 't be blank

I generated the ssh key with the command below.

ssh-keygen2 "[email protected]" -t rsa

ssh-keygen is not available with this cygwin.

A: 

Do you have a passphrase on the key? Mine didn't work until I generated one with a passphrase.

Nathan L Smith
+1  A: 

Perhaps my other answer here is helpful. It's my setup for deploying to Heroku from Windows.

jschulenklopper
+1  A: 

the "C:\cygwin\home\4541450\[email protected]" should be your public key, not the private one

zir
Awesome, that worked for me. It's amazing how often it's the simple things...
Taryn East