1. 程式人生 > >ssh連線超時自動logout問題

ssh連線超時自動logout問題

時間由引數TMOUT控制,可以在/etc/profile中export設定下,讓其永久生效。

* TMOUT=600   #set an auto-logout timeout for 10 minutes

* TMOUT=1200  #set an auto-logout timeout for 20 minutes
* TMOUT=   #turn off auto-logout (user session will not auto-logout due to session inactivity)

* TMOUT=600   #set an auto-logout timeout for 10 minutes

* TMOUT=1200  #set an auto-logout timeout for 20 minutes
* TMOUT=   #turn off auto-logout (user session will not auto-logout due to session inactivity)