亚马逊AWS 使用putty或winSCP连接时:服务器拒绝接受我们的密钥。
首先,做了以下尝试仍然提示有问题:
1.根据AWS官方文档生成密钥,并转换成putty或winSCP可读取的.ppk ,1024位或2048位都尝试了,还是被拒绝。
http://docs.amazonaws.cn/AWSEC2/latest/UserGuide/ec2-key-pairs.html2.检查了AMI 为Ubuntu AMI,根据AWS官方文档尝试了 root, ubuntu ,ec2-user 用户均无法访问,同样提示被拒绝。3.打开了实例对应的 SSH 22端口,TCP 所有端口,还是被拒绝。
请教有用过的AWS 使用putty或winSCP连接成功有前辈,帮忙指点下,是哪个地方没有设置到位?还是操作有误
多谢。

解决方案 »

  1.   

    The error is familiar from when I set up the connection almost a year ago. If you're setting up AWS SSH for the first time, these address the most common problems:Wrong username: Disconnected : No supported authentication methods available (server sent :publickey)
    https://stackoverflow.com/questions/21535907/disconnected-no-supported-authentication-methods-available-server-sent-publi
    Incorrect .ppk file: Unable to connect to amazon server using putty
    https://stackoverflow.com/questions/19096348/unable-to-connect-to-amazon-server-using-putty