Justin Scott
2013-05-28 22:55:03 UTC
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
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