[ 
https://issues.apache.org/jira/browse/SSHD-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17108497#comment-17108497
 ] 

Lyor Goldstein commented on SSHD-994:
-------------------------------------

I believe I have simple solution for you:
{code:java}
SftpFileSystemProvider sfProvider=....intialize...
FileSystemFactory fsFactory = new FileSystemFactory() {
    @Override
    public FileSystem createFileSystem(Session session) throws IOException {
        if (..whatever condition...) {
            return fsProvider.newFileSystem(...);
        } else {
            return NativeFileSystemFactory.INSTANCE.createFileSystem(session);
        }
    }
};
SshServer server = SshServer.setupDefaultServer();
server.setFileSystemFactory(fsFactory);
server.start();
{code}

> SCP commands redirect to SFTP subsystem
> ---------------------------------------
>
>                 Key: SSHD-994
>                 URL: https://issues.apache.org/jira/browse/SSHD-994
>             Project: MINA SSHD
>          Issue Type: New Feature
>    Affects Versions: 2.3.0
>            Reporter: Sandeep
>            Priority: Blocker
>
> Hi Team, I am working on one of the big project where SCP commands need to 
> redirect to SFTP subsystem.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org

Reply via email to