- Copy the public and private keys to
%userprofile%\.ssh
- Use the batch script below after finding your keys from the cmd prompt with
where *.pub
:Md %Userprofile%\.ssh Copy PublicKey %Userprofile%\.ssh Copy PrivateKey %Userprofile%\.ssh Cd %Userprofile%\.ssh Icacls .\PublicKey /Inheritance:r Icacls .\PrivateKey /Inheritance:r Icacls .\PublicKey /Grant:r "%Username%":"(F)" Icacls .\PrivateKey /Grant:r "%Username%":"(F)"
- Right-click each file → Properties → Security:
Remove everyone except the user, setting the permissions for the user to Read
6 of 6
Applied syntax highlighting ; Grammatical corrections (incl. formatting and redundancy removal)
JW0914
- 8.3k
- 7
- 31
- 50
Lynn Edmiston
- 21
- 3