linux下ssh超时时间配置

摘自:https://www.cnblogs.com/flishroom/p/11661515.html

Linux下设置超时时间,是在配置文件/etc/profile里。在该文件下,添加一个变量:

export TMOUT=60

时间单位是S,上面配置的超时时间是60秒。

60秒无人操作ssh终端,则ssh自动退出。

posted @ 2020-03-04 18:17  LiuYanYGZ  阅读(572)  评论(0编辑  收藏  举报