Go2Linux shows you how to limit idle ssh sessions time, avoid unattended ones, ClientAliveInterval & ClientAliveCountMax
One of the best security advice is to keep strong passwords, but what happens if even if your users have the strongest passwords, they leave their ssh session open, and unattended. This means that anyone can approach to the PC and just using the passwd command, may change the password, and thus gain access to the server.Limit idle ssh sessions time, avoid unattended ones, ClientAliveInterval & ClientAliveCountMax