How to set user time out on SSH sessions?
-
Hi guys,
I am currently setting up nagios monitoring for my Firewall and noticed 3 users are logged in…
Clearly not the case so I had a look into it - 2 of the sessions are 5 days old / Idle!!!
How can I set the user time out on this for say 1 hour if they are idle?
Thanks
-
I'd also like a good solution for rate limiting SSH on pfsense…
-
Automatic logout depends on their shell. tcsh has autologout, bash has TMOUT, etc. Those are general solutions (i.e. not specific to pfSense)
-
Automatic logout depends on their shell. tcsh has autologout, bash has TMOUT, etc. Those are general solutions (i.e. not specific to pfSense)
hmmm it seems these aren't ssh sessions but actually console sessions from the esxi environment…..
anyway to disconnect them?
-
The same, the shell logout would work the same on ssh or the console, since it's the shell tracking idle time.
Or perhaps ESX has something to close out its own console sessions independent of the OS involved. -
sorry mate I'm not so good with free bsd…
this is the output of w
-
that's just the console sitting at the menu.
-
Yea I thought it was - anyway to disconnect it?
it is a bit annoying as I have nagios setup and would like it to be reporting things like number of users logged in.
-
No if it logs out it goes right back to the menu. Unless you turn on password protection for the console. Even then the menu itself can't time out if someone logs in but doesn't log back out.
-
Thanks for that - I'll remember to log out from now on!