increase ssh timeout
snippet in php

increase ssh session timeout linux

user5174

 ssh -o ServerAliveInterval=60 -i Firstme.pem ec2-user@3.90.84.197

increase ssh timeout

user7015

#Add these lines on sshd_config

ClientAliveInterval 120
ClientAliveCountMax 720