Is SSH not part of basic WSL2 install?

xtian 1 Reputation point
2024-11-24T21:42:17.33+00:00

Is ssh-client not part of the basic WSL2 install??

bandit@Venture:/mnt/c/Users/me$ ssh
-bash: ssh: command not found
bandit@Venture:/mnt/c/Users/me$ sudo ssh
[sudo] password for me:
sudo: ssh: command not found

SSH is so basic and necessary for so many other programs, I'm now doubting if the system was installed correctly. I don't recall having this issue before.

wsl --install -d debian

https://learn.microsoft.com/en-us/windows/wsl/install

(And why is WSL not a tag for this forum?)

Windows 11
Windows 11
A Microsoft operating system designed for productivity, creativity, and ease of use.
10,109 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Daisy Zhou 26,161 Reputation points Microsoft Vendor
    2024-11-26T07:49:25.5733333+00:00

    Hello

    Thank you for posting in Q&A forum.

    Typically, yes, it has ssh client. But sometimes, certain packages might not be installed by default depending on the specific Linux distribution you are using or the configuration of your WSL2 setup.

    1. Different Linux distributions have different sets of default packages. It's possible that the distribution you installed with WSL2 does not include the SSH client by default.
    2. During the installation or setup of WSL2, certain configurations might have been skipped or altered, leading to the exclusion of the SSH client.
    3. There might have been updates or changes in the WSL2 or the specific Linux distribution that affected the default package list, resulting in the SSH client not being included.

    I hope the information above is helpful.

    If you have any questions or concerns, please feel free to let us know.

    Best Regards,

    Daisy Zhou

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.