Hello,
You can simply set the ServerType
property to SftpServerType.Unknown
once connected and authenticated, restoring the previous behavior:
var client = new Sftp();
client.Connect(serverName, port);
client.Login(userName, password);
client.ServerType = SftpServerType.Unknown;
Be default, ServerType
is choosen based either on "newline" extension (in case of SFTP v4) or on the server identification string. Apparently, SunSSH is missing from that list.