title: JSch causes packet size exceeds maximum allowed error
body: <p>I am attempting to use the JSch class (<a href="http://www.jcraft.com/jsch/" rel="nofollow">Java Secure Channel</a>; jsch-0.1.50.jar) to connect to an SFTP server and send a file from within a ColdFusion (9.0.2) application (which runs atop Java 1.7.0_15).  The basic code in question is:</p>
  
  <pre><code>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();
  </code></pre>
  
  <p>Upon connection to a Serv-U SFTP server it is giving me the following error on the Serv-U side immediately after the connection opens:</p>
  
  <pre><code>SSH Protocol Error: packet size exceeds maximum allowed.
  </code></pre>
  
  <p>Serv-U then closes the session, at which point JSch throws the exception:</p>
  
  <pre><code>Session.connect: java.io.IOException: End of IO Stream Read
  </code></pre>
  
  <p>I am new to the JSch class, and it's possible I'm missing something obvious, but I am at a loss as to where the error may lie.  Connecting to the same SFTP server from the same origin with WinSCP gives no errors.  Any tips on what the code is doing wrong or where to turn next for troubleshooting?</p>