Updated Install Win32 OpenSSH (markdown)

Manoj Ampalam 2018-09-13 11:34:20 -07:00
parent c91ae169df
commit 0b6d262a57

@ -16,15 +16,11 @@ To get links to latest downloads [this wiki page](https://github.com/PowerShell/
``` ```
1. Start `sshd` (this will automatically generate host keys under %programdata%\ssh if they don't already exist) 1. Start `sshd` (this will automatically generate host keys under %programdata%\ssh if they don't already exist)
* `net start sshd` * `net start sshd`
1. Migrate sshd configuration from 0.0.X.X versions (optional): 1. Optional
* To use existing customized sshd_config, you need to copy it from binary location to %programdata%\ssh\sshd_config (Note that %programdata% is a hidden directory). - To configure a default shell, see [here](https://github.com/PowerShell/Win32-OpenSSH/wiki/DefaultShell)
* To use existing host keys, you need to copy them from binary location to %programdata%\ssh\ - To setup `sshd` service to auto-start
* Prior versions required SSHD resources (sshd_config, host keys and authorized_keys) to have READ access to "NT Service\SSHD". This is no longer a requirement and the corresponding ACL entry should be removed. You may run `Powershell.exe -ExecutionPolicy Bypass -Command '. .\FixHostFilePermissions.ps1 -Confirm:$false'` (Note the first "." is a call operator.) to fix up these permissions. * `Set-Service sshd -StartupType Automatic`
1. Setup `sshd` and `ssh-agent` to auto-start (optional) - To migrate sshd configuration from older versions (0.0.X.X), see [here](https://github.com/PowerShell/Win32-OpenSSH/wiki/Migrate-sshd_config-from-older-versions)
* `Set-Service sshd -StartupType Automatic`
* `Set-Service ssh-agent -StartupType Automatic`
1. To configure a default shell (optional) see [here](https://github.com/PowerShell/Win32-OpenSSH/wiki/DefaultShell)
## Uninstall Win32 OpenSSH ## Uninstall Win32 OpenSSH