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.

asked 4 months ago113 views
3 Answers
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
EXPERT
answered 4 months ago
profile pictureAWS
EXPERT
reviewed 4 months ago
profile picture
EXPERT
reviewed 4 months ago
  • 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,

answered 4 months ago
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,

answered 4 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions