« Return to Thread: Limit number of login sessions

Re: Limit number of login sessions

by Maximo Pech :: Rate this Message:

Reply to Author | View in Thread

> Some friends you have...
>
> ps aux | grep sshd | grep priv | awk '{print $12}' | sort | uniq -c
>
> Tell your friends if their number ever gets bigger than 2, they're no
> longer your friends.  A few more minutes of scripting and you'll have
> something to run in cron that deletes their account.


That one sounds good.

 « Return to Thread: Limit number of login sessions