# vi /etc/ssh/sshd_config ClientAliveInterval 0 ClientAliveCountMax 3By default these values are set to 0
# vi /etc/ssh/sshd_config ClientAliveInterval 60 ClientAliveCountMax 5Add this line as shown in the following file
# vi /etc/ssh/ssh_config ServerAliveInterval 60Create a file at this location if it does not exist
# vi /root/.ssh/config Host * ServerAliveInterval 60NOTE: Make sure you give a space before ServerAliveInternal as shown above
# service sshd restartSo now every 60 seconds ssh client will send a message through encrypted channel to the server so that the session does not disconnects when left idle.
# ssh -vvv "client IP or hostname"
Follow the below links for more tutorials
How to configure Samba 4 Secondary Domain Controller
How to secure Apache web server in Linux using password (.htaccess)
How to register Red Hat Linux with RHN (Red Hat Network )
Red hat Enterprise Linux 5.5 Installation Guide (Screenshots)
15 tips to enhance security of your Linux machine
Why is Linux more secure than windows and any other OS
What is the difference between "su" and "su -" in Linux?
What is swappiness and how do we change its value?
How to log iptables messages in different log file
What are the s and k scripts in the etc rcx.d directories
How to check all the currently running services in Linux
How to auto start service after reboot in Linux
What is virtual memory, paging and swap space?