ssh-keygen' is not recognized as an internal o

2020-06-06 07:51发布

I am trying to add ssh keys for usage on github but on my xp on command prompt ssh-keygen does not work. It gives me the following error

ssh-keygen' is not recognized as an internal or external command.

Is there an alternative for generating keys on xp?

9条回答
萌系小妹纸
2楼-- · 2020-06-06 08:34

ssh-keygen is a utility usually found on Linux distributions. You can use Cygwin on Windows to have most functionality of the Linux command line available to you.

http://www.cygwin.com/

查看更多
姐就是有狂的资本
3楼-- · 2020-06-06 08:39

If you previously installed Git, open a git-bash and try the command from there.

查看更多
家丑人穷心不美
4楼-- · 2020-06-06 08:39

for all windows os

cd C:\Program Files (x86)\Git\bin
ssh-keygen
查看更多
啃猪蹄的小仙女
5楼-- · 2020-06-06 08:39

if you run from cmd on windows check the path System Variable value must have inside C:\Program Files\Git\bin or the path of you git installation on cmd type set to see the variables

查看更多
霸刀☆藐视天下
6楼-- · 2020-06-06 08:44

Running git bash as an admin worked for me!

查看更多
淡お忘
7楼-- · 2020-06-06 08:47

STEP 1 Install Git.

STEP 2 Add the path of your git to the environment variables like this C:\Program Files (x86)\Git\bin.

STEP 3 Open new terminal session and try ssh-keygen. It will work.

NOTE New Terminal Window is must!

查看更多
登录 后发表回答