timed out waiting for input: auto-logout

使用CRT连接服务器时,过一会儿总会显示timed out waiting for input: auto-logout,这是怎么回事?

这是因为设置了“会话空闲超时时退出”的缘故。具体设置如下:

vim /etc/profile

TMOUT=60         #or the number of seconds you want 

. /etc/profile   加载

echo $TMOUT      会显示60,单位应该是秒

在.bash_profile 文件中添加

export TMOUT=60 

猜你喜欢

转载自blog.csdn.net/qq_22510521/article/details/81352076
今日推荐