已经在寻找解决方案,但似乎没有任何帮助,我正在做所有想做的事情,我的实例不断向我返回消息“服务器拒绝了我们的 key ”。
这是我一直在做的事情:
1) Create Instance;
2) Download the .pem key;
3) PuttyGen to transform it in a private .ppk (SSH-2 RSA);
4) Associate an Elastic IP to the Instance;
5) Connect through 22 with the correct auth key generated on the 3rd step;
6) Server asks for username, insert "ubuntu" (using 12.04.1 LTS);
7) Server returns "Server refused our key".
尝试重新启动一百次,尝试了 SSH-1 RSA,尝试了公钥而不是私钥,尝试了密码短语的 key ,尝试了一切。
其他人正在经历这个?
编辑:
认为这可能是一个安全问题,如果有帮助,这里是我的规则:
http://i.stack.imgur.com/Y3I2s.png
最佳答案
刚刚陷入同样的问题。 AWS 实例仅识别在实例创建期间指定的 key 。以后对 key 列表的所有更改都不会影响已创建的实例。
编辑:实际上,这里的问题是使用 Puttygen 错误地导出到 .ppk 文件。请参阅下面的评论。
关于amazon-web-services - AWS EC2 一直拒绝我的私有(private) SSH 2 key ,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/14335748/