Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 412
pal4life Avatar asked Apr 13 '12 18:04

pal4life


People also ask

How do I fix ssh not recognized?

Checking for Installation. If it returns: 'ssh' is not recognized as an internal or external command, operable program or batch file. Then it may need to be installed (see if the folder "C:\Windows\System32\OpenSSH" exists and has files such as "ssh.exe" in it).

How do I run a ssh-keygen in Git bash?

Go to this address, and download Git for Windows, after the download install it with default settings. Open Git Bash that you just installed (Start->All Programs->Git->Git Bash) Type in the following: ssh-keygen -t rsa (when prompted, enter password, key name can stay the same) Open file your_home_directory/.

What is ssh-keygen command in Linux?

ssh-keygen generates, manages and converts authentication keys for ssh(1). ssh-keygen can create keys for use by SSH protocol version 2. The type of key to be generated is specified with the -t option. If invoked without any arguments, ssh-keygen will generate an RSA key.


1 Answers

Are you running msysgit, or some other form of Windows git installation? msysgit is only one possible way to run git on Windows but it's probably also the simplest one. It's also the way recommended by the git website at http://git-scm.org/ .

If you are using msysgit, then you need to run the command in Git Bash, not in a standard Windows command line prompt. Git Bash is a prompt that is installed for you by msysgit, and is basically the most common Linux command line shell (bash) packaged for Windows to facilitate command line usage of git. msysgit should also install the ssh-keygen program in a place where it is accessible from Git Bash, but not necessarily from your usual Windows command line prompt.

like image 137
kini Avatar answered Sep 21 '22 08:09

kini