SSH not working on windows bash?

I am using windows 10 Pro. Using bash shell there. When I type SSH command it says

MINGW64 ~
$ ssh
bash: ssh: command not found

My understanding bash will be able to execute all linux commands. Isn't it ? Command lS works. Do I need to do anything else here ?

12

3 Answers

I'm using debian in wsl2 and I was facing the same issue. In my case I fixed the issue by installing the openssh-client. For debian/ubuntu the command is apt install openssh-client. Hope that helps.

Try installing the Terminal app from the windows store. When a distro is installed you can change your shell (by clicking the down arrow next to the tab).

If you are in your distro (probably Ubuntu) and ssh still won't work, you may need to install ssh (to check if it is installed type 'whereis ssh' in your distros shell).

1

You need to install the ssh client or to make sure the folder where the binaries are installed to is in your PATH environment variable.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like