3 ms·
Setting ClientAliveInterval and ClientAliveCountMax does not disconnect idle users. It's for detecting failed network connections. Your ssh client will still
by sneak 14y ago
Setting ClientAliveInterval and ClientAliveCountMax does not disconnect idle users. It's for detecting failed network connections. Your ssh client will still reply to protocol level alive checks even if you are sitting idle at a prompt.
What he's looking for instead is:
echo "TMOUT=300 >> /etc/bashrc
You can argue that this doesn't really enhance security, though...
- graywh 14y agoI've used timeoutd to disconnect idle users.
- Florin_Andrei 14y agoIt's prudent to do this as many people just leave ssh sessions hanging open forever, and their desktops don't auto-lock the screensaver. It's still easily thwarted if the user keeps "top" running in it, or something.
- sneak 14y ago> many people just leave ssh sessions hanging open forever, and their desktops don't auto-lock the screensaver Not "many people" use ssh to begin with.
- Florin_Andrei 14y agoI'm talking about engineering staff, like me, my co-workers, and (very likely) you.
- sneak 14y agoWho would hire someone to use ssh who doesn't know enough to encrypt their disk and lock their screen on a timeout?