On Fri, Jun 16, 2006 at 09:02:50AM -0700, Rich Turner wrote: > I have looked through options.h and could not find where I could define the > total number of concurrent client connections that are allowed to be > connected to the dropbear server. I would like to limit the number of > authorized connections to 1. Is this possible? > > I do see in options.h the ability to limit the number unauthorized clients, > but nothing to limit the number of authorized clients.
There isn't a setting for this by default. You can achieve it by setting MAX_UNAUTH_CLIENTS 1, then commenting out the "m_close(svr_ses.childpipe)" call near the bottom of svr-auth.c. It seems to work here, you might want to test it a bit though. Let me know how it goes. Cheers, Matt