Sudden ssh connection loss on Amazon Linux

0

Periodically the ssh connection with amazon linux gets stuck and I can not connect anymore. Having to restart the instance ec2 for the connection to return to normal. This is not an idle connection. After dropping the connection I can not connect again without the instance being restarted.

ssh -vvv  

enter image description here

date after connection closed
enter image description here

Marcel Bezerra

Posted 2018-07-27T12:05:16.637

Reputation: 1

2You say the connection is 'not idle' i.e. you're doing something on it - what are you doing when it disconnects. Run ssh with -v (more -vvvv's can make it more verbose) to see what's happening and update the question with logs. – djsmiley2k TMW – 2018-07-27T12:08:37.387

Regardless of whether the connection falls by idle or by my manual disconnection. For a while I can reconnect normally until suddenly I can not anymore. When I restart the instance the connection returns to normal. – Marcel Bezerra – 2018-07-27T14:29:32.533

Answers

0

Check out your CPU and Memory usage in the server by using Free -g command and top command. If you are running any application that takes more space and CPU power then you need to take some high configured instance type from AWS.

Gurumahesh

Posted 2018-07-27T12:05:16.637

Reputation: 35

Perhaps the problem is even related to the hardware size and limits of the instance. But I have already increased the instance and the problem continues to occur. – Marcel Bezerra – 2018-08-01T19:58:12.917