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
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