We have 3 AL8/CL8 and 1 AL9/CL9 servers running cPanel.
All 4 servers close SSH sessions after 1 hour, no matter the settings in sshd_config, logind.conf, PuTTY, .bashrc, or .bash_profile. The AL8/CL8 boxes were upgraded from Centos7/CL7 using cPanel elevate process with no issues. Prior to the upgrade, ssh sessions stayed open as long as we need them.
These are not idle sessions; disconnects happen even while actively typing. We suspect this may be related to the lack of output from w or who when logged in via ssh - only console sessions are displayed. However, we’ve found nothing definitive.
We have searched far and wide for an explanation and fix, and all we’ve been able to find are people complaining about the same thing, with no solution. It would be great if somebody had a fix.