Limit number of connections per user?

Goran Hasse gorhas at
Fri Apr 16 06:24:26 EST 2010

Why do you want to do this! This is totaly against all
praxis in a Unix environment! Users will bee VERY anyoyed. If they log in from
home and then go to some other place and try to login and the server
says "rejected"
they will just get mad. (In my opinion). And mostly because they don't
the logic in this. A unix is a multiuser, mutli session environment.
Scrap this idea!


2010/4/15 Scott Neugroschl <scott_n at>:
> 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.
> e.g.:
> 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
> _______________________________________________
> openssh-unix-dev mailing list
> openssh-unix-dev at

gorhas at
Mob: 070-5530148

More information about the openssh-unix-dev mailing list