Could not generate ssh public key for heroku in Windows 7

Suman Sapkota picture Suman Sapkota · Feb 22, 2013 · Viewed 21.5k times · Source

While I am trying heroku login through cmd in my machine, it says

Could not find existing public key
Would you like to generate one? [YN]

After that when I press 'y' and enter it says

Generating new ssh public key
Could not generate key: "ssh-keygen" is not recognized as a internal or external command operable program or batch file

Please help me.

Answer

stys picture stys · Feb 22, 2013

Heroku toolbelt includes git distribution which includes the required ssh-keygen.exe . I've just found it in C:\Program Files\git\bin . Locate your git folder and add it to your system path as described here: superuser.com/questions/284342/