解决ssh连接超时(ssh timeout)的方法

echo export TMOUT=1000000 >> /root/.bash_profile   (可设置为-1为永不超时)
cat /root/.bash_profile
source .bash_profile
cp /etc/ssh/sshd_config /etc/ssh/sshd_config_bak
echo ClientAliveInterval=60 >> /etc/ssh/sshd_config
service sshd restart
cat /etc/ssh/sshd_config
exit

  

猜你喜欢

转载自www.cnblogs.com/LuckWJL/p/11863067.html