In CENTOS7, I use wget command to get one file. But ssh session will be closed in 120 minutes. In every 20 minutes, the following information appeared.
Tue Jun 2 06:40:01 2020
Your terminal (/dev/pts/0) has been idle for 63 min.
Press Enter key or you will be logged out any time after 56 min.
I modifed the parameter in /etc/ssh/sshd_config as following:
ClientAliveInterval 60
ClientAliveCountMax 5000000000000
But the problem does still exist.
3
Answers
You can let wget run in the background with
-b
option. The ssh session can be closed but the ssh process runs on. sourceTue Jun 2 06:40:01 2020
Your terminal (/dev/pts/0) has been idle for 63 min.
Press Enter key or you will be logged out any time after 56 min.
The above output is NOT standard sshd or any process of Linux OS.
I guess you are using a Nokia deployed system.
There is a private process /usr/sbin/KillIdleSessions to do such jobs as named.
Its configration file is:
/etc/security/kis.conf
Normally, this process is scheduled in root crontab.
You can use:
Reenable when done, or don’t. Autologout after 24 hours make sense. Autologout every few minutes does not, especially as it isn’t very good at detecting activity.