- 최신
- 최다 투표
- 가장 많은 댓글
There is an extensive knowledge article https://repost.aws/knowledge-center/ec2-server-refused-our-key which steps through a lot of possible causes (and solutions) for the "server refused our key" message. Could you try working through these and see if any of them resolve your issue.
You mention your EC2 is running Ubuntu - which version is it? if you are using the absolute latest version then do you get the same error when you provision an EC2 with an older version of Ubuntu and the same key-pair?
Also, can you provision an EC2 with another version of Linux, such as Amazon Linux, and using the same key-pair? This should still work, though you would have to login as ec2-user
instead of ubuntu
(this would be useful in that it would show you the key is alright).
How are you connecting to your instances, is it from a Windows PC (and if so are you using PuTTY?), or from a Mac, or from another Linux host?
관련 콘텐츠
- 질문됨 2달 전
- AWS 공식업데이트됨 4달 전