Hi
Ubuntu 18.04.4
I have a root user (login disabled) and a domain user. I ssh login with the domain user, disconnect and then reconnect.
When I run loginctl list-sessions I see both sessions in the list, when I run w I only see my current session in the list.
It seems that the previous session is never closed completely and remain as shadow forever.
I added ClientAliveInterval=10m and ClientAliveCountMax=0 to sshd_config but it doesn't seem to have any effect.
I use virtualmin that connects and disconnects the user every 5 minutes for his own stuff so that list grows quickly with those shadow sessions.
Is there something else I can do?
Thanks
Bookmarks