title: .JSchException: Packet corrupt
body: <p>I am using Jsch 0.1.51 on RHEl 6 with Jdk 1.7_51. While making session to a remote machine I am getting exception that is :</p>
  
  <pre><code>com.jcraft.jsch.JSchException: Packet corrupt
          at com.jcraft.jsch.Session.start_discard(Session.java:1049)
          at com.jcraft.jsch.Session.read(Session.java:919)
          at com.jcraft.jsch.UserAuthNone.start(UserAuthNone.java:56)
          at com.jcraft.jsch.Session.connect(Session.java:389)
          at com.jcraft.jsch.Session.connect(Session.java:183)
          at TestSFTP.checkException(TestSFTP.java:130)
          at TestSFTP.moveFileToDir(TestSFTP.java:78)
          at TestSFTP.main(TestSFTP.java:73)
  </code></pre>
  
  <p>Same code was working fine with RHEL 5. Can any body provide some suggestions .. Thanks</p>
  
  <p>code used is :</p>
  
  <pre><code>Session   session     = null;
  ChannelSftp channelSftp = null;
  JSch jsch = new JSch();
  
  session = jsch.getSession(this.sftpUser,this.sftpHost,this.sftpPort);
  
  Properties config = new Properties();
  config.put("StrictHostKeyChecking", "no");
  session.setConfig(config);
  session.setPassword(this.sftpPassword);
  session.connect();
  channelSftp = (ChannelSftp)session.openChannel("sftp");
  channelSftp.connect();
  </code></pre>
  
  <p>I am getting error at session.connect();</p>