Tired of everyone SSHing into Linux? Flip the script: SSH into Windows from your Linux box. Works great with VSCode Remote too. Here's how to enable the built-in OpenSSH server on Windows.
Step 1: Check Installed OpenSSH Components
First, open a PowerShell window with administrator privileges. Let's see what's already installed:
|
You might see output indicating that the client is installed but not the server:
Name : OpenSSH.Client~~~~0.0.1.0
State : Installed
Name : OpenSSH.Server~~~~0.0.1.0
State : NotPresent
Step 2: Install the OpenSSH Server
If the server isn't present, let's bring it on board. Run:
Step 3: Start and Enable the SSH Server
Now, let's get the sshd service up and running:
And ensure it starts automatically with Windows:
That's it.