how log afer does aws shh hang up 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