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 年前檢視次數 745 次
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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南