Re: Limit number of login sessions

2008-10-01 Thread Giancarlo Razzolini
Maximo Pech escreveu: > I mean, I don't know if there's another way to do it without having to login > in the ssh server. > What about a VPN? You can filter on vpn ip's. -- Giancarlo Razzolini http://lock.razzolini.adm.br Linux User 172199 Red Hat Certified Engineer no:804006389722501 Verify:h

Re: Limit number of login sessions

2008-10-01 Thread Julian Leyh
Maximo Pech schrieb: would you not be better to use ALTQ to limit the bandwidth available to each user? then if they share their password their only sharing their own use? Users are not in my local network. They will connect from the internet and they have dynamic IPs so I guess that wouldn't

Re: Limit number of login sessions

2008-09-30 Thread Maximo Pech
> Please describe this situation some more. What does 'sharing a ssh tunnel' > mean? Once a ssh tunnel is established, it just tunnels between two > points, > nobody needs to login anywhere then to 'use' it. It means that I use my computer on a home adsl connection as a ssh tunnel and that I le

Re: Limit number of login sessions

2008-09-30 Thread Maximo Pech
> would you not be better to use ALTQ to limit the bandwidth available > to each user? then if they share their password their only sharing > their own use? Users are not in my local network. They will connect from the internet and they have dynamic IPs so I guess that wouldn't work because altq

Re: Limit number of login sessions

2008-09-30 Thread Maximo Pech
> 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.

Re: Limit number of login sessions

2008-09-24 Thread ttw+bsd
On 24.09-09:48, Maximo Pech wrote: > Well I guess I will have to resolve this by coding something. What do you > think about this: [ ... ] would you not be better to use ALTQ to limit the bandwidth available to each user? then if they share their password their only sharing their own use? if not

Re: Limit number of login sessions

2008-09-24 Thread Ted Unangst
On Wed, Sep 24, 2008 at 10:48 AM, Maximo Pech <[EMAIL PROTECTED]> wrote: > 2008/9/22 Maximo Pech <[EMAIL PROTECTED]> > >> This will be a ssh tunnel, I want to share it with a few friends, but I >> don't want them sharing it with someone else because if a lot of people >> start using it my upload ba

Re: Limit number of login sessions

2008-09-24 Thread Maximo Pech
Well I guess I will have to resolve this by coding something. What do you think about this: There will be a daemon that has a list of logged users. When a user logs in a small program is launched that tell the daemon the user has logged in. The daemon looks for the user in the list of users, If th

Re: Limit number of login sessions

2008-09-21 Thread Dorian Büttner
On Sunday 21 September 2008 02:16:58 Maximo Pech wrote: > Hi I'm looking for a way to configure a limit for the maximum number of > simultaneous login sessions for a user. I want to do this for preventing > users to create multiple ssh sessions. I think something similar can be > done trough pf, bu

Re: Limit number of login sessions

2008-09-21 Thread Dorian Büttner
On Sunday 21 September 2008 02:16:58 Maximo Pech wrote: > Hi I'm looking for a way to configure a limit for the maximum number of > simultaneous login sessions for a user. I want to do this for preventing > users to create multiple ssh sessions. I think something similar can be > done trough pf, bu

Re: Limit number of login sessions

2008-09-20 Thread Mike
just curious why the pf solution would not work for you? On Sun, Sep 21, 2008 at 2:16 AM, Maximo Pech <[EMAIL PROTECTED]> wrote: > Hi I'm looking for a way to configure a limit for the maximum number of > simultaneous login sessions for a user. I want to do this for preventing > users to create

Limit number of login sessions

2008-09-20 Thread Maximo Pech
Hi I'm looking for a way to configure a limit for the maximum number of simultaneous login sessions for a user. I want to do this for preventing users to create multiple ssh sessions. I think something similar can be done trough pf, but that's not the approach I'm looking for.