Error "Connection reset by peer" with ssh

0

I am currently experiencing an issue with SSH connections to my EC2 instance. Whenever I attempt to connect using SSH, I receive the following error message: "kex_exchange_identification: read: Connection reset by peer."

I have verified that my SSH key pair is correctly configured and the security groups allow inbound SSH traffic on port 22. However, I am still unable to establish a successful SSH connection.

I would greatly appreciate any guidance or suggestions to regain SSH access to my EC2 instances. Thanks in advance!

질문됨 일 년 전2510회 조회
1개 답변
0

Is it being rejected by the TCPWrapper?
You may need to review the settings in "/etc/hosts.allow" and "/etc/hosts.deny" of your EC2 instance.
In particular, you should check the file "/etc/hosts.deny".
If your IP address is listed in this file, your connection will be denied.

If SSM Agent is installed on EC2, try using Session Manager instead of SSH to connect.
https://docs.aws.amazon.com/systems-manager/latest/userguide/session-manager-getting-started.html

profile picture
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠