title: JSch connecting to ftp.secureftp-test.com
body: <p>So, I used the example on <a href="http://www.jcraft.com/jsch/examples/Sftp.java" rel="nofollow">http://www.jcraft.com/jsch/examples/Sftp.java</a> and I was trying to connect to ftp.secureftp-test.com.</p>
  
  <p>That destination is a valid testing SFTP server (as mentioned in secureftp-test dot com/). I confirmed it by connecting to the server through nautilus. I also made sure that the password on my program was correct as well.</p>
  
  <p>But, when I run the program and it hits session.connect(), it just says "INFO: Connection established" then it becomes quiet for a minute then it return:
  "com.jcraft.jsch.JSchException: connection is closed by foreign host"</p>
  
  <p>I am pretty sure that it got stuck in the while loop of the library but I do not know why. I tried it against my local ftp server and it also had the same problem.</p>
  
  <p>During the quiet moment, I can type. But pressing enter does not send anything to the server.</p>
  
  <p>Has anyone heard or seen the same problem?</p>