Limit number of connections per user?

Scott Neugroschl scott_n at
Fri Apr 16 01:28:51 EST 2010

I'm working from modified 5.0p1 codebase.

What I'm looking for is a mechanism to limit the number of simultaneous
connections on a per-user/IP basis.
That is, disallow multiple simultaneous logins/authentication of the
same user from different IP addresses.


fred from - accept
fred from -- reject while fred is still connected from
fred from - OK (same IP)
--- all freds log out
fred from -- OK (fred not logged in)

Is this doable, or not?  I realize that the sshd architecture may make
this difficult or impossible.

Scott Neugroschl

More information about the openssh-unix-dev mailing list