We use a very simple SFTP script to transmit files to various external vendors. 
 With one specific vendor, the process hangs when trying to connect to the host:

Session session=jsch.getSession(user, host, port);
       session.connect();
       Channel channel=session.openChannel("sftp");
       channel.connect(); --------------------------------------------debugging 
has shown that the process hangs here
       ChannelSftp c=(ChannelSftp)channel;

And throws this error:

com.jcraft.jsch.JSchException: java.io.IOException: channel is broken
        at com.jcraft.jsch.ChannelSftp.start(ChannelSftp.java:242)
        at com.jcraft.jsch.Channel.connect(Channel.java:200)
        at com.jcraft.jsch.Channel.connect(Channel.java:144)
        at sendSftp.send(sendSftp.java:56)
        at sendSftp.main(sendSftp.java:103) Caused by: java.io.IOException: 
channel is broken
        at com.jcraft.jsch.Session.write(Session.java:1073)
        at com.jcraft.jsch.ChannelSftp.sendINIT(ChannelSftp.java:1948)
        at com.jcraft.jsch.ChannelSftp.start(ChannelSftp.java:207)
        ... 4 more

It fails using both 1.40 and 1.42 jars.  Asking for the logs from the host 
company has resulted in an TCP Reset-O error on their side.  I can connect from 
the command line using the seeded SFTP script, it is just the jcraft version 
that is failing.

Please help if you have any suggestions.

Scott Halepaska
scott.halepa...@dishnetwork.com<mailto:scott.halepa...@dishnetwork.com>
720.514.6472

------------------------------------------------------------------------------
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to