Active4 years, 8 months ago
Ssh-keygen.exe is part of Git For Windows, whose releases include PortableGit-2.4.3.1-2nd-release-candidate-64-bit.7z c: path to PortableGit-2.4.3.1-2nd-release-candidate-64-bit usr bin ssh-keygen.exe. In the git bash terminal type ssh-keygen -t rsa. This will generate public and private key pair; Go to the location of the keys (I'd recommend using git bash for it) and open the public key (with cat, for example), copy it; Paste the public key on your github account using Account-SSH Keys-Add key; I.
I am trying to generate a new SSH key on my windows computer using command prompt.I have installed Cygwin and added its path to use linux commands through command prompt. Using skype without microsoft account.
Now ls is listing me the inner folders.But ssh is still nor working.
On trying to generate SSH key using the commandssh-keygen -t rsa -C 'email_id'
its giving me a following error.ssh-keygen is not recognized as an internal or external command, operable program or batch file.
Quick-gun MorganQuick-gun Morgan
1 Answer
No need for cygwin: a regular msysgit is enough (unzip
PortableGit-1.9.5-preview20141217.7z
anywhere you want, add its bin/
folder to your path and you have git
and ssh including ssh-keygen
)Once you have launched its
git-cmd.bat
, you can generate your ssh keys.(here I don't use a passphrase, for testing purposes, avoiding the ssh-agent management)
id_rsa
and id_rsa.pub
will be generated in %HOME%/.ssh
.HOME
is set by the git-cmd.bat
, usually in %USERPROFILE%
.![Ssh Keygen Windows Git Ssh Keygen Windows Git](/uploads/1/2/4/8/124868173/412662301.png)
897k330330 gold badges29132913 silver badges35033503 bronze badges
![Key Key](/uploads/1/2/4/8/124868173/779440286.jpg)