title: Ganymed SSH for java connect issue
body: <p>We are using the Ganymed-SSH library and facing this error while doing SSH to another machine.</p>
  
  <pre><code>[root@XXXX test]# java -classpath .:ganymed-ssh2-build210.jar Basic 
  
  ERROR:java.io.IOException: There was a problem while connecting to 10.X.X.X:22
  java.io.IOException: There was a problem while connecting to 10.X.X.X:22
      at ch.ethz.ssh2.Connection.connect(Connection.java:699)
      at ch.ethz.ssh2.Connection.connect(Connection.java:490)
      at Basic.main(Basic.java:27)
  Caused by: java.io.IOException: Key exchange was not finished, connection is closed.
      at ch.ethz.ssh2.transport.KexManager.getOrWaitForConnectionInfo(KexManager.java:91)
      at   ch.ethz.ssh2.transport.TransportManager.getConnectionInfo(TransportManager.java:229)
      at ch.ethz.ssh2.Connection.connect(Connection.java:655)
      ... 2 more
  Caused by: java.io.IOException: Cannot read full block, EOF reached.
      at ch.ethz.ssh2.crypto.cipher.CipherInputStream.getBlock(CipherInputStream.java:81)
      at ch.ethz.ssh2.crypto.cipher.CipherInputStream.read(CipherInputStream.java:108)
      at ch.ethz.ssh2.transport.TransportConnection.receiveMessage(TransportConnection.java:231)
      at ch.ethz.ssh2.transport.TransportManager.receiveLoop(TransportManager.java:669)
      at ch.ethz.ssh2.transport.TransportManager$1.run(TransportManager.java:468)
      at java.lang.Thread.run(Thread.java:636)
  </code></pre>
  
  <p>Can anyone explain what could be the issue here? Where should we start to debug from?
  SSH access from normal shell works correctly.</p>