Good evening, I am attempting to write an automated process that will
connect JSch to a remote server and send a file.  Seems simple enough.
 Upon connection to a Serv-U SFTP server it is giving me the following
error on the Serv-U side:

    SSH Protocol Error: packet size exceeds maximum allowed.

Serv-U then closes the session, at which point JSch throws the exception:

    Session.connect: java.io.IOException: End of IO Stream Read

Here is the basic code in question:

    jsch = classLoader.create("com.jcraft.jsch.JSch").init(); //
ColdFusion-specific to load the jar
    jschSession = jsch.getSession("myusername", "ftp.example.com", 22);
    jschSession.setConfig("StrictHostKeyChecking", "no");
    jschSession.setTimeout(60000);
    jschSession.setPassword("mypassword");
    jschSession.connect();

This is being loaded from within a ColdFusion application (which runs
on Java 7) using a Java class loader which is loading jsch-0.1.50.jar.

I am new to JSch, so if I'm missing something obvious please go easy
on me.  Any thoughts on what might be going awry?  Thanks in advance.


-Justin Scott

------------------------------------------------------------------------------
Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET
Get 100% visibility into your production application - at no cost.
Code-level diagnostics for performance bottlenecks with <2% overhead
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap1
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to