Enable OpenSSH Server on Windows

Run these commands in an elevated PowerShell (Right-click Start → "Terminal (Admin)" or "Windows PowerShell (Admin)")

Step 1 — Install OpenSSH Server

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

Step 2 — Start the service & set to auto-start

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

Step 3 — Open firewall for SSH (port 22)

New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22

All-in-one (copy & paste everything at once)

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0
Start-Service sshd
Set-Service -Name sshd -StartupType 'Automatic'
New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22
That's it. Once these commands complete, SSH will be available on port 22. The remotecmd agent will handle the rest — deploying remotecmd-cli and connecting it to the relay.
≡ hart

Hosted on hart

jar/enable-ssh-windowspublic
🏠 hart home🔎 Explore public👤 More from jar