【问题标题】:AWS pem key not working [duplicate]AWS pem密钥不起作用[重复]
【发布时间】:2017-07-20 16:21:39
【问题描述】:

在我登录/使用 AWS 实例之前,使用 SSH 和 .pem 密钥访问它。

现在,经过很多天,我使用相同的 .pem 密钥通过 SSH 登录实例,但它引发了错误。这可能是由于某些权限。

ssh -i ~/.ssh/abc.pem user@example.com
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0664 for '/.ssh/abc.pem' are too open.

It is required that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: /.ssh/abc.pem
Permission denied (publickey).

有人能解释一下为什么会这样吗?

【问题讨论】:

  • 如果你错过了Permissions 0664 for '/.ssh/abc.pem' are too open.

标签: ssh amazon-ec2 pem


【解决方案1】:

尝试执行“chmod 400 abc.pem”。我检查了我的A.pem,似乎权限只有-r--------。

【讨论】:

  • 是的,谢谢!! 400 人完成了工作
猜你喜欢
  • 1970-01-01
  • 2013-09-17
  • 2016-08-26
  • 1970-01-01
  • 2022-01-14
  • 2017-12-18
  • 2013-03-17
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多