SSH preventing disconnecrtions

edit config file

udo vi /etc/ssh/sshd_config

change these config items:


TCPKeepAlive no 
ClientAliveInterval 30
ClientAliveCountMax 240```

Send ALive message every 30
timeout after 4 hours

restart ssh

    service ssh restart