【发布时间】:2020-11-04 20:28:52
【问题描述】:
我想用 SSH 连接我的 ec2。 但我得到这个错误:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions for 'F:\\Config\\first1.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 "F:\\Config\\first1.pem": bad permissions
ec2-user@ec2-52-14-94-38.us-east-2.compute.amazonaws.com: Permission denied (publickey).
如何在 Windows 上解决这个问题?
【问题讨论】:
-
您需要确保该文件对任何其他用户没有读取权限,您可以通过打开文件的权限对话框来做到这一点,并确保只有您的用户具有读取权限。没有写权限,byw。
标签: amazon-web-services amazon-ec2 ssh