This simple command allows you to SSH to a server from Windows Powershell using a private key pem
file:
|
|
You may see the following error upon trying the SSH command from Windows Powershell:
|
|
On Linux, this is fixed with the command chmod 600 ElastiCoure.pem
on the private key file, however Windows does not have an equivalent method. Instead you can utilize the icacls.exe
tool to fix permissions for the private key as follows (change directory in the path variable to match the key location if in a different directory):
|
|
Now you should be able to SSH to your server from Powershell using pem
key file.