-
-
Notifications
You must be signed in to change notification settings - Fork 336
Closed
Description
61fc57f created the issue
A sample code with file list support :
import java.util.ArrayList;
import java.util.List;
import org.apache.sshd.SshServer;
import org.apache.sshd.common.NamedFactory;
import org.apache.sshd.server.Command;
import org.apache.sshd.server.UserAuth;
import org.apache.sshd.server.auth.UserAuthNone;
import org.apache.sshd.server.command.ScpCommandFactory;
import org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider;
import org.apache.sshd.server.sftp.SftpSubsystem;
public class SFTP {
public static void main(final String[] args) throws Exception {
SshServer sshd = SshServer.setUpDefaultServer();
sshd.setPort(1111);
sshd.setKeyPairProvider(new SimpleGeneratorHostKeyProvider("hostkey.ser"));
List<NamedFactory<UserAuth>> userAuthFactories = new ArrayList<NamedFactory<UserAuth>>();
userAuthFactories.add(new UserAuthNone.Factory());
sshd.setUserAuthFactories(userAuthFactories);
sshd.setCommandFactory(new ScpCommandFactory());
List<NamedFactory<Command>> namedFactoryList = new ArrayList<NamedFactory<Command>>();
namedFactoryList.add(new SftpSubsystem.Factory());
sshd.setSubsystemFactories(namedFactoryList);
sshd.start();
}
}
FileZilla & Nautilus can list files but not Cyberduck.
I get an authentification fail message on Cyberduck whereas server log say authentification is successful.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
sftpSFTP Protocol ImplementationSFTP Protocol Implementation