HomeWinBuzzer TipsHow to Enable and Use SSH Commands on Windows 10

How to Enable and Use SSH Commands on Windows 10

We show you how to install SSH on Windows 10 by enabling the Windows Open SSH client. We also walk you through the usage of command-line SSH.

-

Using SSH on used to be a pain that required third-party software such as PuTTy. In 2018, though, enabled native SSH commands via an OpenSSH Windows integration.

If you're unfamiliar with SSH, it stands for Secure Shell, a protocol typically used for connecting to Linux servers. The command-line SSH tool lets you log into your server and run commands remotely to perform any required task.

The Integrated OpenSSH for Windows Client

The OpenSSH client for Windows is installed by default on Windows Server 2019 and Windows 10 build 1809 and later. However, if SSH commands aren't working for you, it's because you need to enable them in your Windows features. We're going to walk you through enabling SSH on Windows 10 via this method, then show you how to use it. Let's get started:

How to Install the SSH Client on Windows 10

Though Windows 10 OpenSSH is installed by default on most versions, it may not be for everyone. Thankfully, enabling SSH only takes a few seconds. Here's how:

  1. Press the Search button and type “Optional feature”
     

    Click the top result, which should read, “Add an optional feature”.

    Windows 10 - Search - installa an optional feature

  2. Click “Add a feature” in Settings
     

    Windows 10 - installa an optional feature

  3. Install the Windows OpenSSH Client
     

    Type “SSH” in the optional features search bar, then tick the entry that reads “OpenSSH Client”. Finally, click the “Install” button at the bottom of your Window. The process will take a few seconds to complete and shouldn't require a restart.

    Windows 10 - installa an optional feature - openSSH

How to Use SSH Commands in Windows 10

Once you have the Windows 10 SSH client installed, using it is a simple matter. You can use for this, or SSH, whichever you prefer. The SSH commands are the same across both applications, so you can still follow along.

  1. Open Command Prompt (or PowerShell)
     

    Press Start and then type “Command Prompt”. Click the top result.

    Windows 10 - Open Command Prompt

  2. Run the SSH command to view its usage guide
     

    Command Prompt will return a full list of options and syntax for you to use as you require.

    Windows 10 - Command Prompt - Enter ssh Command

  3. Connect to your server via your Windows Open SSH client
     

    In most cases, you won't need the above options to connect to your SSH server. Instead, you can simply run:

    ssh username@host

    You'll be prompted for your server's root password, which you can type and press Enter to log in.

    If your server uses a different port to the standard for SSH, you can specify it by adding -p portnumber to the end of your command.

    The first time you connect to a server, you'll receive a warning asking if you're sure you want to connect. Type yes and press Enter to connect.

    Windows 10 - Command Prompt - Enter the Cmd to Connect to a Server - Accept it

How to Open a Port in Firewall or Enable the Telnet Client

Now you know how to install SSH on Windows. However, if you're still having issues, you may need to follow our tutorial on how to open or close a port in Windows 10 Firewall to add an exception for your SSH port.

Finally, if your server uses the older Telnet protocol, you may want to follow our tutorial on how to enable the Telnet client in Windows 10 instead.

Ryan Maskell
Ryan Maskellhttps://ryanmaskell.co.uk
Ryan has had a passion for gaming and technology since early childhood. Fusing the skills from his Creative Writing and Publishing degree with profound technical knowledge, he enjoys covering news about Microsoft. As an avid writer, he is also working on his debut novel.