TTY limiting for ssh sessions

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

Threaded View
Does anybody here know how I can accomplish TTY limiting with sshd *without*
using sshd_config's "UseLogin" feature?  The goal is to limit shell users
to 2 simultaneous logins.   I've written a script in bash that sorta does
it, but it's not a complete solution.  The OS is FreeBSD 4.9-RELEASE.  Any
ideas out there?

- matt

life to you is a dashing bold adventure.

Re: TTY limiting for ssh sessions

Quoted text here. Click to load it

LinuxPAM's pam_limits can enforce per-user login limits.  I don't know if
FreeBSD has an equivalent (or even if that version of FreeBSD has PAM...)
but that might be an option.

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