On Fri, Mar 16, 2007 at 07:17:10PM +0800, Jay Jesus Amorin wrote:
> hi gurus,
> 
> how will i configure sshd to allow only one username at a time.
> 
> example:
> 
> on pc1 ---- ssh [EMAIL PROTECTED]
> on pc2 ---- ssh [EMAIL PROTECTED]
> 
> now what i like to happen is ssh on pc2 should be drop bec. the user
> root is already connected from pc1.
> 
> is it possible with to configure sshd that way like ssh will already
> drop ssh root from pc2 bec. username root is already connected from
> pc1?

I don't think that is a smart idea, and I am not aware of any way to
implement this particular requirement. You could probably write a daemon
or cron job that takes a look at the number of ptys in use by any single
account, and so on.

                Joachim

Reply via email to