-
Notifications
You must be signed in to change notification settings - Fork 785
Install Win32 OpenSSH
Mike MacCana edited this page Dec 26, 2015
·
121 revisions
- Download Zip file
- 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:
- Install key-auth package
- run setup-ssh-lsa.cmd
- reboot
- Install key-auth package
- Install and run daemon as NT Service running as Local System
./sshd.exe install
net start sshd
- To uninstall -
net stop sshd
;./sshd.exe uninstall
- Make the service start on boot (PowerShell):
Set-Service sshd -StartupType Automatic
- MSI Install Instructions
- Script Install Instructions
- Alternative installation using the universal installer
- Retrieving download links for the latest packages