ssh ec2 instance hangs code example
Example: ec2 ssh terminal hangs after sometime
# increasing the session time
ssh -o ServerAliveInterval=60 user@example.com
# increasing the session time
ssh -o ServerAliveInterval=60 user@example.com