Limit sessions in OpenSSH ?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Is there any way to limit a user to use max 2 sessions (logins) at a
time ? I've tried the FAQ and manual pages but couldn't find anything.


Re: Limit sessions in OpenSSH ?

Quoted text here. Click to load it

Depends on the platform, OpenSSH doesn't have a way to do it itself.
LinuxPAM has pam_limits which can, so if sshd is PAM-enabled and
pam_limits is enabled, it should work.  Other platforms may have similar

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

Site Timeline