Skip to content
Advertisement

commons-net is compatible with ssh-2.0 protocol

i have tried create a project with library commons.net for send via ftp some files. But i created a connection with my server i have received this error.

JavaScript

i have followed this article for create my connection, and with official examples i’ve controlled article.

my java code here:

JavaScript

I do not understand where I went wrong.

Advertisement

Answer

The FTPS protocol does not run over SSH. What you need is SFTP. For this you could look at the Jsch library

JavaScript
User contributions licensed under: CC BY-SA
7 People found this is helpful
Advertisement