mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-24 06:25:35 +02:00
Add secure protection link and update doc represent the change
parent
50fdcbf7ff
commit
bf31066f22
@ -13,7 +13,7 @@
|
||||
***
|
||||
1. Copy `id_rsa.pub` (client's public key) to corresponding user's directory on ssh server machine
|
||||
* as `%systemdrive%\users\<user>\.ssh\authorized_keys` (path on the ssh server machine)
|
||||
2. Make sure the authorized_keys file is [secured](https://github.com/PowerShell/Win32-OpenSSH/wiki/Security-protection-of-various-files-in-win32-openssh)
|
||||
2. Make sure the authorized_keys file is [secured][Secure file] and "NT Service\sshd" has Read access to it
|
||||
```
|
||||
$authorizedKeyPath = "%systemdrive%\users\<user>\.ssh\authorized_keys"
|
||||
$acl = get-acl $authorizedKeyPath
|
||||
@ -27,10 +27,11 @@
|
||||
|
||||
1. Generate a key pair on the client:
|
||||
* `ssh-keygen -t rsa -f id_rsa`
|
||||
2. Register [secured](https://github.com/PowerShell/Win32-OpenSSH/wiki/Security-protection-of-various-files-in-win32-openssh) private key with ssh-agent (for single sign-on experience)
|
||||
* if existing key pair generated by ssh-keygen.exe before build [v0.0.13.0][build13] are used, make sure they are [secured][Secure file].
|
||||
2. Register [secured][Secure file] private key with ssh-agent (for single sign-on experience)
|
||||
* `net start ssh-agent`
|
||||
* `ssh-add id_rsa`
|
||||
3. Login using [secured](https://github.com/PowerShell/Win32-OpenSSH/wiki/Security-protection-of-various-files-in-win32-openssh) private key.
|
||||
3. Login using [secured][Secure file] private key.
|
||||
* `ssh -i .\id_rsa user@host` (work group user)
|
||||
* `ssh -i .\id_rsa -l user@domain host` (domain user)
|
||||
|
||||
@ -38,4 +39,7 @@
|
||||
|
||||
##### For Unix and Linux users
|
||||
|
||||
The [Modern Unix Rosetta Stone](https://certsimple.com/rosetta-stone) includes Powershell examples of common Unix and Linux commands.
|
||||
The [Modern Unix Rosetta Stone](https://certsimple.com/rosetta-stone) includes Powershell examples of common Unix and Linux commands.
|
||||
|
||||
[Secure file]: https://github.com/PowerShell/Win32-OpenSSH/wiki/Security-protection-of-various-files-in-win32-openssh
|
||||
[build13]: https://github.com/PowerShell/Win32-OpenSSH/releases/tag/v0.0.13.0
|
Loading…
x
Reference in New Issue
Block a user