mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-27 16:04:46 +02:00
Updated Install Win32 OpenSSH (markdown)
parent
7d182cac78
commit
c819bc1751
@ -11,17 +11,12 @@
|
|||||||
* `powershell -executionpolicy bypass -file install-sshd.ps1`
|
* `powershell -executionpolicy bypass -file install-sshd.ps1`
|
||||||
* Setup SSH host keys
|
* Setup SSH host keys
|
||||||
* `.\ssh-keygen.exe -A`.
|
* `.\ssh-keygen.exe -A`.
|
||||||
* Add read access for "NT Service/sshd" on all host public keys
|
for instructions to set the right permissions on host keys.
|
||||||
* `icacls ssh_host_dsa_key.pub /grant "NT SERVICE\sshd":(R)`
|
|
||||||
* `icacls ssh_host_rsa_key.pub /grant "NT SERVICE\sshd":(R)`
|
|
||||||
* `icacls ssh_host_ecdsa_key.pub /grant "NT SERVICE\sshd":(R)`
|
|
||||||
* `icacls ssh_host_ed25519_key.pub /grant "NT SERVICE\sshd":(R)`
|
|
||||||
* See [here](https://github.com/PowerShell/Win32-OpenSSH/wiki/Security-protection-of-various-files-in-Win32-OpenSSH) for instructions to set the right permissions on host keys.
|
|
||||||
* Secure SSH host keys (optional)
|
* Secure SSH host keys (optional)
|
||||||
* `Start-Service ssh-agent`
|
* `Start-Service ssh-agent`
|
||||||
* download psexec from [here](https://technet.microsoft.com/en-us/sysinternals/pstools)
|
* download psexec from [here](https://technet.microsoft.com/en-us/sysinternals/pstools)
|
||||||
* launch cmd.exe as SYSTEM - `psexec.exe -i -s cmd.exe`
|
* launch cmd.exe as SYSTEM - `psexec.exe -i -s cmd.exe`
|
||||||
* register [secured][Secure file] host keys in above cmd.exe
|
* register host keys in above cmd.exe
|
||||||
* `ssh-add ssh_host_dsa_key`
|
* `ssh-add ssh_host_dsa_key`
|
||||||
* `ssh-add ssh_host_rsa_key`
|
* `ssh-add ssh_host_rsa_key`
|
||||||
* `ssh-add ssh_host_ecdsa_key`
|
* `ssh-add ssh_host_ecdsa_key`
|
||||||
|
Loading…
x
Reference in New Issue
Block a user