Hi,

Our applications are heavily threaded and each thread makes ssh
connections to remote servers.

We hit a problem when trying to make multiple concurrent requests to
the same server running OpenSSH's sshd.  sshd_config has a [very
reasonable] setting called MaxStartups which limits the number of
unauthenticated connections allowed.  The default value is 10 but, of
course, can be changed.    The specific problem is having multiple
threads make concurrent connections to the same server.  Some
connections are rejected immediately because the earlier connections
have not finished the authentication sequence.

We are considering several options, most of which are not relevant to
the list.  The one I would like to discuss with you is updating the
JSCH source code.  We would like to add an additional feature which
tracks unauthenticated connections and blocks once it reaches a
certain number.  By default, the feature could be disabled.  It could
be activated and configured via system properties (i.e.
-Djsch.tracking=enabled -Djsch.max.unauthenticated.connections=10 )

I wanted to open discussion on this idea with the list before I begin
development.  Is there anything like this already in the code or
planned?  What does the community think about this feature?  etc...

Please make sure to keep arkadiyk on the CC since he is not subscribed
to jsch-users.

Thanks,
Keith Alan Richardson

------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to