1 回答
- 最新
- 投票最多
- 评论最多
0
Make sure your key is only readable by you - chmod 600 keyname.pem
Try ssh -vvv -i ...
and see if it gives you any more details.
And this is just a hunch, I'm guessing it's the latest version of Ubuntu you've built your EC2 with; what version is running on the host that you're trying to SSH from?
It's possible the new version has deprecated some old & insecure encryption algorithms, but when attempting the initial key exchange your SSH client is only able to offer up these.
You can try spinning up an EC2 running an older version of Ubuntu and confirm that you can login with the key on this older version. If you can do that then it proves the keys are good.
相关内容
- AWS 官方已更新 1 年前
- AWS 官方已更新 2 年前