Gustav,

What's the sftp server you are trying to use? Are you hitting a variation of 
https://bugzilla.mindrot.org/show_bug.cgi?id=1397 ?

Good hunting,

Dave

> Message: 7
> Date: Fri, 18 Mar 2011 10:32:20 +0000
> From: Gustav Karlsson <gustav.karls...@bekk.no>
> Subject: [JSch-users] Unable to connect to SFTP server after 20
>       connects/disconnects
> To: "jsch-users@lists.sourceforge.net"
>       <jsch-users@lists.sourceforge.net>
> Cc: Taral Seierstad <taral.seiers...@bekk.no>
> Message-ID: <c9a8f344.261c%gustav.karls...@bekk.no>
> Content-Type: text/plain; charset="us-ascii"
> 
> Hi,
> 
> We are experiencing an issue when using Jsch to connect to a SFTP-
> server. It seems like the sessions are not properly closed or cleared,
> resulting in a rejection from the SFTP server after 20
> connects+disconnects.
> 
>   1.  Execute commands connect, cd, ls and disconnect on SFTP-server 20
> times. (We disconnect both the channel and the session)
>   2.  The next connect results in an exception. (connection through
> command-line sftp now returns an error "ssh_exchange_identification:
> Connection closed by remote host")
>   3.  Wait ~30 min and connects will again be accepted.
> 
> Has anyone experienced a similar issue and/or know the cause?
> Connecting 20+ times using the command-line SFTP-client does not result
> in this problem.
> 
> Regards,
> Gustav Karlsson

------------------------------------------------------------------------------
Colocation vs. Managed Hosting
A question and answer guide to determining the best fit
for your organization - today and in the future.
http://p.sf.net/sfu/internap-sfd2d
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to