user@www# vi /etc/ssh/sshd_configFind ClientAliveInterval and set to 300 (5 minutes) as follows:
ClientAliveInterval 300 ClientAliveCountMax 0ClientAliveInterval sets a timeout interval in seconds after which if no data has been received from the client, secshd will send a message through the encrypted channel to request a response from the client. ClientAliveCountMax sets the number of client alive messages (above) which may be sent without secshd receiving any messages back from the client. Save and close the file. Restart sshd:
user@www# /etc/init.d/sshd restartand enjoy.