linux ssh登录aws EC2主机失败报秘钥错误,请高手指点

李良川 2014-11-04 07:27:40
[root@iZ233ytunndZ ~]# ssh -i alicesso.pem root@ec2-54-228-137-210.cn-north-1.compute.amazonaws.com.cn
The authenticity of host 'ec2-54-228-137-210.cn-north-1.compute.amazonaws.com.cn (54.228.137.210)' can't be established.
RSA key fingerprint is 33:3f:2d:74:1d:80:36:c9:04:e2:3b:99:ed:3e:45:ff.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'ec2-54-228-137-210.cn-north-1.compute.amazonaws.com.cn,54.228.137.210' (RSA) to the list of known hosts.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ WARNING: UNPROTECTED PRIVATE KEY FILE! @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Permissions 0777 for 'alicesso.pem' are too open.
It is recommended that your private key files are NOT accessible by others.
This private key will be ignored.
bad permissions: ignore key: alicesso.pem
Enter passphrase for key 'alicesso.pem':

一般选对秘钥不就应该直接就可以ssh到目标主机吗?请大神指点
Permission denied (publickey).
...全文
6318 8 打赏 收藏 转发到动态 举报
写回复
用AI写文章
8 条回复
切换为时间正序
请发表友善的回复…
发表回复
ghnboy 2016-05-02
  • 打赏
  • 举报
回复
看上去像是permission问题
ddddhf 2016-01-28
  • 打赏
  • 举报
回复
2楼方法可以解决 提示也说了是权限太开放了 Permissions 0777 for 'alicesso.pem' are too open. It is recommended that your private key files are NOT accessible by others.
nk2539198411 2015-04-08
  • 打赏
  • 举报
回复
看看还是好的 扩展一下
H0PE 2015-04-05
  • 打赏
  • 举报
回复
puttygen 生成private key 成ppk再等 如果你是windows的话
hyzhang6639 2014-11-22
  • 打赏
  • 举报
回复
由于alicesso.pem的权限太高导致的,使用以下命令可以解决: chmod 600 alicesso.pem
czkdcs 2014-11-14
  • 打赏
  • 举报
回复
楼主有解决了吗?我也出现 这个问题,之前是可以连接的。

409

社区成员

发帖
与我相关
我的任务
社区描述
AWS
社区管理员
  • AWS
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧