Permissions 0664 for ‘yanyongx.pem‘ are too open.

#通过实例1:vpc_test_EC2_01访问实例2:vpc_test_EC2_2无法访问,提示密钥权限太大

[ec2-user@ip-10-0-1-66 ~]$ ssh -i yanyongx.pem ec2-user@10.0.2.240

The authenticity of host '10.0.2.240 (10.0.2.240)' can't be established.

ECDSA key fingerprint is SHA256:eGdqS2OUREkRuHAF7UNylbEVfTd4f62NwGukuHFRI3o.

ECDSA key fingerprint is MD5:30:03:b0:3f:31:bf:e7:0a:62:54:ba:cc:0e:34:2a:91.

Are you sure you want to continue connecting (yes/no)? yes

Warning: Permanently added '10.0.2.240' (ECDSA) to the list of known hosts.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

@         WARNING: UNPROTECTED PRIVATE KEY FILE!          @

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Permissions 0664 for 'yanyongx.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 "yanyongx.pem": bad permissions

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

#更改密钥权限,访问正常

[ec2-user@ip-10-0-1-66 ~]$ chmod 400 yyx2.pem

[ec2-user@ip-10-0-1-66 ~]$ ssh -i yyx2.pem ec2-user@10.0.2.209

       __|  __|_  )

       _|  (     /   Amazon Linux 2 AMI

      ___|\___|___|

Amazon Linux 2

19 package(s) needed for security, out of 31 available

Run "sudo yum update" to apply all updates.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值