Command not found: ssh OpenSSH not found on your computer

Sampath picture Sampath · Oct 21, 2017 · Viewed 18k times · Source

I'm trying to set up Ionic pro. But it gives an error.Any help?

I have installed Git Bash.But still, it shows above error. Why?

May we proceed? Yes

ionic ssh generate C:\Users\lokuge.ssh\ionic\4460 [ERROR] Command not found: ssh [WARN] OpenSSH not found on your computer. [INFO] You will be prompted to provide a passphrase, which is used to protect your private key should you lose it. (If someone has your private key, they can impersonate you!) Passphrases are recommended, but not required. 'ssh-keygen' is not recognized as an internal or external command, operable program or batch file. [ERROR] Command not found: ssh-keygen

Answer

Oliver Baumann picture Oliver Baumann · Oct 21, 2017

Simple: install SSH

Since you seem to be on Windows, I suggest getting Git Bash. That ships with OpenSSH. Oh, and Git, obviously.

Edit, because the solution is actually in the comments: You have to run whatever command is causing the error in Visual Studio from within the actual Bash shipped with Git Bash. Simply installing Git Bash but running the command from within VS does not work, as VS assumedly uses a different terminal emulator.