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