diff --git a/ssh.exe-examples.md b/ssh.exe-examples.md index e4c0591..9698b94 100644 --- a/ssh.exe-examples.md +++ b/ssh.exe-examples.md @@ -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\\.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\\.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. \ No newline at end of file +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 \ No newline at end of file