From aaead212d4f4114a286e2adee0a07a8e5bbfed0a Mon Sep 17 00:00:00 2001 From: David Wimsey Date: Fri, 4 Dec 2015 11:01:35 -0500 Subject: [PATCH] Removed manual ssh-keygen steps, switched to using the -A option which creates all the appropriate keys for a 'host' in the right way (no password) - This is the way a new host is configured on UNIX with openssh ssh-keygen -A is run at every startup and does nothing if they keys already exist --- Deploy-Win32-OpenSSH.md | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Deploy-Win32-OpenSSH.md b/Deploy-Win32-OpenSSH.md index 1c9ee0e..c33a4ec 100644 --- a/Deploy-Win32-OpenSSH.md +++ b/Deploy-Win32-OpenSSH.md @@ -1,10 +1,7 @@ 1. Download [Zip file](https://github.com/PowerShell/Win32-OpenSSH/releases/download/11_09_2015/OpenSSH-Win32.zip) * Extract contents -* Setup SSH host keys (**with no passphrase**) - * `ssh-keygen.exe -t rsa -f ssh_host_rsa_key` - * `ssh-keygen.exe -t dsa -f ssh_host_dsa_key` - * `ssh-keygen.exe -t ecdsa -f ssh_host_ecdsa_key` - * `ssh-keygen.exe -t ed25519 -f ssh_host_ed25519_key` +* Setup SSH host keys (this will generate all the 'host' keys that sshd expects when its starts) + * `ssh-keygen.exe -A` * Open Firewall * start PowerShell * `New-NetFirewallRule -Protocol TCP -LocalPort 22 -Direction Inbound -Action Allow -DisplayName SSH` @@ -15,4 +12,4 @@ * 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` + * To uninstall - `net stop sshd` ; `sshd.exe uninstall` \ No newline at end of file