ssh: connect to host ec2-xx-xx-xx-xx.eu-central-1.compute.amazonaws.com port 22: Resource temporarily unavailable

0

Hello, When logging in to EC2 remotely, a message similar to the one in the title appears and connection is not possible. Please tell me the cause and solution in this case. EC2 is successfully instantiated on the AWS console.

Thanks.

gefragt vor 4 Monaten121 Aufrufe
3 Antworten
0

Hello.

Is SSH allowed in EC2's security group inbound rules?
Also, make sure that the route to the Internet gateway is set in the route table of the subnet where EC2 is running.

I think you can troubleshoot by following the steps in the document below, so please try it.
https://repost.aws/knowledge-center/ec2-ssh-errors-automation-workflow
https://repost.aws/knowledge-center/ec2-linux-ssh-troubleshooting

profile picture
EXPERTE
beantwortet vor 4 Monaten
profile pictureAWS
EXPERTE
überprüft vor 4 Monaten
profile picture
EXPERTE
überprüft vor 4 Monaten
  • The troubleshooting method I shared is effective when you can't connect at all. So if there are cases where you can connect, it may not have much effect. What is the resource load situation such as CPU usage rate of EC2 when connection is not possible? SSH connection may fail if EC2 is under heavy load.

0

Hi, Thank you for the advice. However, since it is not impossible to connect at all, I cannot judge whether this solution is appropriate. As for the situation, sometimes I can connect successfully. Even if you can connect, there are times when the response is very slow. Other times I can't connect at all. Is the solution you gave us effective in this kind of case? Thanks and Regards,

beantwortet vor 4 Monaten
0

Hi, Thanks for your reply. As a result, the process used by crontab was increasing the CPU load, leading to network disconnections. This never happened before, but it has improved since then. Thanks and Regards,

beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen