-
Notifications
You must be signed in to change notification settings - Fork 785
Install Win32 OpenSSH
Viktor Szépe edited this page Feb 4, 2016
·
121 revisions
- Download the 2015-11-09 release
-
Extract contents to
C:\Program Files\OpenSSH-Win32
-
Start Powershell as Administrator
cd 'C:\Program Files\OpenSSH-Win32'
-
Setup SSH host keys (this will generate all the 'host' keys that sshd expects when its starts)
.\ssh-keygen.exe -A
-
Open Firewall
New-NetFirewallRule -Protocol TCP -LocalPort 22 -Direction Inbound -Action Allow -DisplayName SSH
-
If you need key-based authentication, run the following to setup the key-auth package
cmd /c setup-ssh-lsa.cmd
Restart-Computer
-
Install and run daemon as NT Service running as Local System
.\sshd.exe install
Start-Service sshd
- Make the service start on boot (PowerShell):
Set-Service sshd -StartupType Automatic
New-NetFirewallRule
is for servers only. If you're on a workstation try:
netsh advfirewall firewall add rule name='SSH Port' dir=in action=allow protocol=TCP localport=22
- Start Powershell as Administrator
- Stop the service
Stop-Service sshd
- Uninstall
.\sshd.exe uninstall
- MSI Install Instructions
- Script Install Instructions
- Alternative installation using the universal installer
- Retrieving download links for the latest packages