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

David Wimsey 2015-12-04 11:01:35 -05:00
parent ea49c270e7
commit aaead212d4

@ -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`