开发者

Does Apache Ftp Server (java) SFTP work for anyone?

开发者 https://www.devze.com 2023-03-22 10:21 出处:网络
After trying to get sftp working ive ended up with the simplest possible sample that does not work. Basically I have created a simple class with main and copied the 2nd (SFTP) example from http://mina

After trying to get sftp working ive ended up with the simplest possible sample that does not work. Basically I have created a simple class with main and copied the 2nd (SFTP) example from http://mina.apache.org/ftpserver/embedding-ftpserver-in-5-minutes.html. The server starts without any exceptions but no client (winscp, cute开发者_如何学JAVAftp etc) all fail to connect. Im completely baffled any pointers would be appreciated...im guessing im missing something completely obvious.


SFTP and FTPS are completely different protocols.

SFTP is related to SSH. Java implementations include:

  • Maverick - a commercial implementation
  • Apache Mina SSHD - part of the open source Apache Mina project

FTPS is FTP over SSL. There are many, many implementations, including Apache FTPServer.


Turns out you cant create an SFTP server only ftp over ssl :(

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号