help with login.conf session limiting

Farid Hajji me at farid-hajji.de
Fri Nov 28 01:14:09 PST 2003


On Friday 28 November 2003 04:47 am, Julian C. Dunn wrote:
> I wonder if any of you have ever tried to restrict the # of simultaneous
> sessions on a FreeBSD box using login.conf. I'm trying to use the
> 'sessionlimit' but it appears to be doing diddly squat. The class in
> question is the following "subshell" one:

login.conf is only used by login(1), not by sshd.
Try setting UseLogin in /etc/ssh/sshd_config
if you want sshd to use login, and therefore these
settings. Beware: this is NOT recommended.

> - Julian

-- 
Farid Hajji. http://www.farid-hajji.net/address.html



More information about the freebsd-stable mailing list