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
文件,‘属性’ -> ‘安全’ -> ‘高级’:

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

3. Ok!
所有评论(0)