1. 程式人生 > >linux系統過一兩分鐘就斷開的時間更改

linux系統過一兩分鐘就斷開的時間更改

vi /etc/ssh/sshd_config LoginGraceTime 0 參考man sshd_config LoginGraceTime The server disconnects after this time if the user has not successfully logged in.  If the value is 0, there is no time limit.  The default is 120 seconds.

設定完成後重啟服務reboot,或者遠端執行/etc/init.d/sshd restart即可

直接執行如下命令:
#unset TMOUT