Linux终端远程服务器一段时间后提示错误:timed out waiting for input: auto-logout
是因为Linux系统设置的连接超时时间太短,修改系统环境变量TMOUT即可。
解决:
1,编辑profile文件
vim /etc/profile
2、修改TMOUT值,修改为36000,表示10小时
TMOUT=36000
3、强制保存,输入 :wq!
4、立即生效
source /etc/profile
5、检查设置成功
[root@test ~]# echo $TMOUT
36000