How to install the OpenSSH server on Windows with PowerShell

When you’ve ever had a have to SSH right into a Home windows machine, Jack Wallen exhibits you tips on how to make that potential with the assistance of PowerShell.

SSH over servers

Picture: Funtap/Shutterstock

Utilizing SSH to distant right into a Linux server is extremely simple. Even putting in the SSH server itself is a chunk of cake. However when you’ve gotten a have to SSH right into a Home windows machine, issues get a bit extra difficult. It isn’t terribly difficult, however it’s not almost so simple as it’s with Linux.

I’ll stroll you thru the method of putting in the OpenSSH Server on Home windows 10, configuring it to begin at boot, after which present you tips on how to log in from a Linux machine. You might not ever have a necessity to do that, however while you do, you will be glad you already know.

SEE: Hiring Package: Community Engineer (TechRepublic Premium)

What you will want

The one belongings you’ll want are a working occasion of Home windows 10, a person with admin privileges and a second machine to log in from.

With these in hand, let’s get to work.

Easy methods to set up OpenSSH on Home windows 10

The very first thing to do is open PowerShell with admin privileges. Click on the Begin button and kind PowerShell. Whenever you see the entry, click on Run as Administrator after which click on Sure. Earlier than we set up, we now have to search out out which variations of the software program can be found, which might be achieved with the command:

Get-WindowsCapability -On-line | The place-Object Identify -like 'OpenSSH*'

It is best to see the next printed out in your PowerShell terminal:

Identify  : OpenSSH.Consumer~~~~

State : NotPresent

Identify  : OpenSSH.Server~~~~

State : NotPresent

What the above means is neither the OpenSSH (model consumer or server is put in. Let’s repair that. First, set up the OpenSSH consumer with:

Add-WindowsCapability -On-line -Identify OpenSSH.Consumer~~~~

Subsequent, set up the OpenSSH server with:

Add-WindowsCapability -On-line -Identify OpenSSH.Server~~~~

Now, for those who problem the command:

Get-WindowsCapability -On-line | The place-Object Identify -like 'OpenSSH*'

Each consumer and server ought to be listed as Put in.

Subsequent, we have to begin the OpenSSH server with the command:

Begin-Service sshd

Now, we’ll set the OpenSSH server to begin at boot. For that, problem:

Set-Service -Identify sshd -StartupType 'Automated'

Easy methods to SSH into your Home windows machine

That is the place it will get a bit messy. First, you have to discover out what your precise person account title is. To try this, click on the Begin menu and kind cmd. When the terminal window opens, your username will likely be listed within the type of:


The place USERNAME is your precise username.

Subsequent, you will want the password you used to setup your account on Home windows 10. This is likely to be your Hotmail password, your Skype password, or your OneDrive password.

With each of these items of data in hand, go to your Linux (or one other Home windows machine with OpenSSH put in) and log in with:

ssh [email protected]

The place USERNAME is your Home windows 10 username and IP is the IP handle of your Home windows machine. If you do not know the IP handle of your Home windows machine, return to the cmd terminal window on Home windows and problem the command:


The IP handle ought to be listed within the output.

You ought to be prompted on your Home windows person password. When you attempt that password and it fails, you might need to ensure your Home windows machine permits for password login. Many occasions, the Home windows 10 desktops are configured to login through Home windows Whats up Face, Fingerprint, PIN or Safety Key. Password is commonly overlooked of that. With a purpose to allow password login, do the next:

  1. Open Settings.
  2. Go to Accounts.
  3. Click on Signal-in Choices.
  4. Disable the Require Home windows Whats up Signal-in for Microsoft accounts.
  5. Restart your laptop.

Whenever you go to login, you may nonetheless use your default technique of authenticating, however you can login together with your account password through SSH. When you do not disable the Home windows Whats up requirement, you might need bother logging in through SSH. 

Try to SSH into the Home windows machine once more. Hopefully, this time the method ought to full and you will find your self on the Home windows terminal immediate, able to do no matter it’s you have to do on that machine.

Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the newest tech recommendation for enterprise execs from Jack Wallen.

Additionally see

Recent Articles


Related Stories

Leave A Reply

Please enter your comment!
Please enter your name here

Stay on op - Ge the daily news in your inbox