Windows连接ssh时 Permissions for ‘.pem‘ are too open解决方法

Windows使用 -i 连接服务器ssh时报错:

Permissions for ‘1.pem’ are too open.
It is required that your private key files are NOT accessible by others.
This private key will be ignored.
Load key “1.pem”: bad permissions

这是因为.pem文件权限太大了。

解决方法:

1. 右击.pem文件,‘属性’ -> ‘安全’ -> ‘高级’:

Windows连接ssh时 Permissions for ‘.pem‘ are too open解决方法_第1张图片

2. 将所有者改为你自己,删除掉其它所有用户的权限:

Windows连接ssh时 Permissions for ‘.pem‘ are too open解决方法_第2张图片

3. Ok!

你可能感兴趣的:(Windows,服务器,运维,windows,ssh)