How to use SSH on Windows 10
With Windows 10, you can use Secure Shell (SSH) much more easily than with older operating systems. We’ll show you how!
- Published
- Content reviewed
Listen to this article
Start reading aloud with a voice from your device. Changing the voice, speed or section stops playback; you can then start again.
Checking available voices.
Overview
With Windows 10, you can use the Secure Shell (SSH) network administration tool much more easily than with older Microsoft operating systems such as the now-obsolete Windows 7.
The tool allows you to access a computer via a securely encrypted connection and to enter and execute commands via the command line as an administrator. This can be very useful, for example, when installing updates on multiple computers within a network. Data transfers between the host and an SSH client are also easily possible with SSH.
Unlike with the Windows 7 or Windows 8.1 operating systems, since the release of Windows 10 Update 1709 in 2017, it has been possible to access an SSH server using the operating system itself. It is no longer necessary to use third-party tools.
This feature is already well established in open-source operating systems such as Linux – and now Microsoft is following suit with SSH.
Here’s how – using SSH with Windows 10
Press the Windows+R key combination to open the ‘Run’ window. Here, type the command ‘cmd.exe’ to open the Command Prompt. (Alternatively, you can open ‘Windows PowerShell’ via the Start menu.)
At the command prompt, type ‘SSH’ to view the syntax of the SSH command. If you’re already familiar with SSH from Linux or Mac, you’ll be pleased to know that you won’t have to make any major adjustments when using it on Windows 10 – the procedure is very similar.
If you want to connect to an SSH server, enter the relevant command. This will vary depending on the name of the network or domain. You can also simply enter the relevant IP address.
So the command would be:
ssh [email protected]
Normally, the SSH client uses port 22 to connect to the SSH server. If the server uses a different port, you must specify this when connecting. To do this, use the ‘-p’ switch followed by ‘port’. If the server uses port 7200, the command might look like this:
ssh [email protected] –p 7200
As is well known, SSH encryption is based on key exchange. So, when you connect to the server for the first time, you will be prompted to confirm the relevant key by entering the command ‘Yes’. Next, you must enter your user password.
The connection is now being established, and once it is up and running, you can run all terminal commands via SSH.
Now that Windows 10 also supports SSH, you can also remotely maintain computers running a Linux operating system.
Setting up an SSH server on Windows 10?
As well as simply supporting SSH, Windows 10 also allows you to set up an SSH server on Windows. Unlike the SSH client, you need to enable the SSH server in Windows 10 manually.
To do this, press WINDOWS+I to open ‘Settings’, then go to ‘Apps’ and select the ‘Apps & Features’ sub-menu. You’ll find the ‘Optional features’ option here.
Under ‘Optional Features’, click on ‘Add Features’, select ‘OpenSSH Server’ from the drop-down list, and then click ‘Install’.
SSH servers have not yet been securely implemented in Windows 10. Microsoft therefore expressly points out that this feature is still in beta.
About the authors
Wiresoft Editorial Team
The Wiresoft editorial team explains software, licences and how to use Windows, Office and servers in a clear and practical way. The articles are based on the questions that customers ask Wiresoft in their day-to-day lives.
Sources and further reading
Matching productsOperating systems