1
votes

I am trying to upgrade my 0.13.0 sshd-core and sshd-sftp to 2.1.0. But there is huge implementation change. Any one using latest versions that supports SFTP protocol 6.0. I see FileSystemView Class and sftplet package is not available.

1
HI @RanjithMRK, did you upgrade sshd-core, now i am trying to do the same. - DecKno
Yes @DecKno. Upgrade after few trial and errors. let me know if there is anything i could do about it - Ranjith MRK

1 Answers

0
votes

Extend the SftpSubsystem and force to use protocol 3.0.

public class MySftpSubsystem extends SftpSubsystem {
@Override
protected Reply doProcess(Request request) throws IOException {

    if (request instanceof SshFxpInitRequest) {
        SshFxpInitRequest sshFxpInitRequest = (SshFxpInitRequest) request;
        request = (Request)(new SshFxpInitRequest(3));

    } 

}