Note!! Please register for a free account to access the full content and also to participate in Q&A in the community
OL8: SSH User Session and Process Killed “systemd-logind: Session of user <user> is idle, stopping"
On Oracle Linux 8, SSH sessions of users and their processes are killed automatically after some time, with the following systemd-logind error seen in the logs:
--/var/log/messages-- Jan 23 06:09:09 localhost systemd-logind[264909]: Session "17" of user "opc" is idle, stopping. Jan 23 06:09:09 localhost systemd[1]: session-17.scope: Killing process 265126 (sshd) with signal SIGTERM. Jan 23 06:09:09 localhost systemd[1]: session-17.scope: Killing process 265129 (sshd) with signal SIGTERM. Jan 23 06:09:09 localhost systemd[1]: session-17.scope: Killing process 265130 (bash) with signal SIGTERM. Jan 23 06:09:09 localhost systemd[1]: session-17.scope: Killing process 265237 (script.sh) with signal SIGTERM. Jan 23 06:09:09 localhost systemd[1]: session-17.scope: Killing process 265405 (sleep) with signal SIGTERM
This issue is caused because a timeout value has been set via the
Tagged:
1