[root@iZ233ytunndZ ~]# ssh -i alicesso.pem [email protected]
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).

解决方案 »

  1.   

    由于alicesso.pem的权限太高导致的,使用以下命令可以解决:
    chmod 600 alicesso.pem
      

  2.   

    puttygen 生成private key 成ppk再等 如果你是windows的话
      

  3.   

    2楼方法可以解决
    提示也说了是权限太开放了
    Permissions 0777 for 'alicesso.pem' are too open.
    It is recommended that your private key files are NOT accessible by others.
      

  4.   

    看上去像是permission问题