SSH防止超时的设置

针对SSH命令工具超时的解决方法:

  1.在命令行输入这两行代码,即可完成

  echo export TMOUT=1000000 >> /root/.bash_profile
  cat /root/.bash_profil
 
  2.重启 
  service sshd restart
 
  3.退出在进去
  exit
 
亲测,效果可以。
原文地址:https://www.cnblogs.com/laoniaofly/p/7200714.html