Using SSH on Windows

 
 
  • Gérald Barré

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 different 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: SSH client and SSH server. These features allow 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:

  2. Click "Add a feature"

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

  4. Restart your computer

  5. 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 running 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

    Shell
    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
  2. Restart your computer

  3. Run bash and follow the configuration steps

  4. Use ssh

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

Do you have a question or a suggestion about this post? Contact me!

Follow me:
Enjoy this blog?Buy Me A Coffee💖 Sponsor on GitHub