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
votes
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));
}
}