From b32f618d43bc619d82e6fea0a730e6e6b8de86c7 Mon Sep 17 00:00:00 2001 From: Mike MacCana Date: Sat, 26 Dec 2015 13:26:50 +0000 Subject: [PATCH] Use Powershell for everything, rather than a mix of Powershell and command. Also fix Win32-OpenSSH#55. --- Deploy-Win32-OpenSSH.md => Install-Win32-OpenSSH.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) rename Deploy-Win32-OpenSSH.md => Install-Win32-OpenSSH.md (71%) 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