Linux设置ssh超时时间
echo "#ssh timeout" >> /etc/profile
echo "export TMOUT=3600" >> /etc/profile
source /etc/profile
echo "ClientAliveInterval 300" >> /etc/ssh/sshd_config
echo "ClientAliveCountMax 3" >> /etc/ssh/sshd_config
service sshd restart
echo "#ssh timeout" >> /etc/profile
echo "export TMOUT=3600" >> /etc/profile
source /etc/profile
echo "ClientAliveInterval 300" >> /etc/ssh/sshd_config
echo "ClientAliveCountMax 3" >> /etc/ssh/sshd_config
service sshd restart