Connection is closed by foreign host

Website URL

Error Message

Exception in thread “main” java.lang.RuntimeException: com.jcraft.jsch.JSchException: connection is closed by foreign host

Other Information

i am connecting this host through java, but not able to connect, Please help me

You trying to connect to your site using ftp, right? I think this is impossible

If I Google for com.jcraft.jsch.JSchException, it implies to me that this is an SFTP connector. Please note that SFTP is based on SSH, which is a different protocol than FTP (and FTPS). And our hosting doesn’t support SSH or SFTP, so that’s not going to work.

So if you want to upload files to our hosting, please make sure you’re using code that supports the FTP protocol.

Also, if possible, it’s recommended to use the FTP hostname, not, as the SSL certificate of the FTP server is only valid for

That said, please note that we provide an FTP server only for website administration. Using the FTP server for automatic file uploading/distribution is not allowed.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.