Skip to content
Advertisement

Apache Mina SFTP SftpSubsystem.Factory()

I am trying to setup a simple SFTP server using Apache Mine SSHD v1.2.0.

I have looked at several examples on the web E.g. here, here and here.

However they all have the same line in common which I cannot get NetBeans to resolve. NetBeans tells me that it cannot find Factory in SftpSubsystem. The line in question looks as follows:

JavaScript

My main looks something like the following:

JavaScript

What am I missing? I simply want to connect to a dummy SFTP server and list some directories and upload a file or two. The thing is that I want to do this from inside an existing java application.

Advertisement

Answer

In recent versions of Apache SSHD, it’s SftpSubsystemFactory:

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