Using SSH on Windows

When you have to manage a Linux server from Windows, you need to install a SSH client. In the past, you would need to install Putty. But today, things have changed. There are 2 differents ways of using SSH on Windows.

Method 1: Using the new SSH Client feature (beta)

In the latest release of Windows 10 (Fall Creators Update 10.0.16299), 2 new optional features have been added: a SSH client and a SSH server. These features allows to use OpenSSH client and server on Windows. This is the result of the port of OpenSSH to Win32 (GitHub).

  1. Open Manage Optional Features:

  1. Click "Add a feature"

  1. Select "OpenSSH Client (beta)" and click "Install"

  1. Restart your computer
  2. Open a command prompt and use ssh

Note that this feature is still in beta, so you may encounter some issues.

Method 2: Using Windows Subsystem for Linux (WSL)

The Windows Subsystem for Linux allows to run Linux applications directly on Windows, unmodified, and without the overhead of a virtual machine. This means you can run the SSH client on Windows.

  1. Open PowerShell as Administrator and run
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  1. Restart your computer
  2. Run bash and follow the configuration steps
  3. Use ssh

If you have any issue configuring WSL, you can follow the Microsoft documentation

Enjoy this blog? Buy Me A Coffee Donate with PayPal

Leave a reply