Estalish SSH on Windows

Windows 10 and 11 (as well as Windows Server 2019/2022) have a built-in OpenSSH Server that allows you to manage the machine via a command line, just like you would with a Linux server.

1. Enable SSH on the Remote Windows Computer

Unlike RDP, SSH is not usually enabled by default on Windows. You must install the OpenSSH Server on the remote machine first (you only need to do this once).

1.1. Install OpenSSH Server:

On Windows, go to Settings > System > Optional Features. Click View Features.

image

Click See available features, search for “OpenSSH Server” in Available features section, and click Add.

If you want to delete, click See added features, search for “OpenSSH Server” and alternatively, via PowerShell Admin:

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

image

1.2. Start the Service:

Open services.msc, find OpenSSH SSH Server, set it to Automatic, and Start it.

Alternatively, via PowerShell Admin:

Start-Service sshd; Set-Service -Name sshd -StartupType 'Automatic'

2. Connect via SSH

From your local computer (Windows, Mac, or Linux), open your terminal (CMD or PowerShell) and run:

ssh username@remote_ip_address