SSH- Server Refused our Key

0

I am getting server refused our key when connecting to my EC2 instance from MobaXterm. Security group and key pair name is correct. I’m using a puttgen .ppk version of the Private key. It worked the first and only other time I connected to this instance. Could something have happened to the key file since then or am I missing something else?

已提问 2 年前736 查看次数
2 回答
1

Sometimes this is caused by not sending the correct login id (ec2-user, ubuntu, etc) when connecting.

profile pictureAWS
专家
kentrad
已回答 2 年前
0

Another possible reason is incorrect permissions for user's (ec2-user, ubuntu,centos etc) home directory and SSH files (~/.ssh/). You can use the AWSSupport-TroubleshootSSH Systems Manager Automation runbook to troubleshoot common SSH issues in EC2 Linux instances. Refer to following AWS Knowledge Centre article for further details.

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-ssh-errors-automation-workflow/

profile pictureAWS
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则