diff --git a/Deploy-Win32-OpenSSH.md b/Install-Win32-OpenSSH.md similarity index 71% rename from Deploy-Win32-OpenSSH.md rename to Install-Win32-OpenSSH.md index 4b4a1dd..b7219dd 100644 --- a/Deploy-Win32-OpenSSH.md +++ b/Install-Win32-OpenSSH.md @@ -1,16 +1,17 @@ 1. Download [Zip file](https://github.com/PowerShell/Win32-OpenSSH/releases/download/11_09_2015/OpenSSH-Win32.zip) -* Extract contents +* 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` + * `./ssh-keygen.exe -A` * Open Firewall - * start PowerShell * `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 and run daemon as NT Service running as Local System - * `sshd.exe install` + * `./sshd.exe install` * `net start sshd` - * To uninstall - `net stop sshd` ; `sshd.exe uninstall` + * To uninstall - `net stop sshd` ; `./sshd.exe uninstall` * Make the service start on boot (PowerShell): `Set-Service sshd -StartupType Automatic` \ No newline at end of file