From 4698370637dda0678905290f5492eda0b7701c0f Mon Sep 17 00:00:00 2001 From: Manoj Ampalam Date: Tue, 4 Apr 2017 12:59:29 -0700 Subject: [PATCH] Updated ssh.exe examples (markdown) --- ssh.exe-examples.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ssh.exe-examples.md b/ssh.exe-examples.md index c7cc566..c1705f8 100644 --- a/ssh.exe-examples.md +++ b/ssh.exe-examples.md @@ -18,7 +18,8 @@ 3. Copy `id_rsa.pub` (client's public key) to corresponding user's directory on ssh HOST * as `%systemdrive%\users\user\.ssh\authorized_keys` 4. Adjust permissions on authorized_keys file -``` $authorizedKeyPath = "%systemdrive%\users\user\.ssh\authorized_keys" +``` + $authorizedKeyPath = "%systemdrive%\users\user\.ssh\authorized_keys" $acl = get-acl $authorizedKeyPath $ar = New-Object System.Security.AccessControl.FileSystemAccessRule("NT Service\sshd", "Read", "Allow") $acl.SetAccessRule($ar)