Quantcast
Channel: Rebex Q&A Forum - Recent questions and answers
Viewing all articles
Browse latest Browse all 3862

Sftp.ServerType setting method

$
0
0

Hello

Question: How Sftp library knows what Sftp.ServerType it connects to?

I am maintaining legacy handheld C# application that downloads text and binary files from sftp server.
For last couple of years sftp server was SunSSH1.1.9 installed on Sun Solaris 10. This year server was migrated to OpenSSH_7.7 on Solaris 11.
Back then Sftp.ServerType was receiving value 'Unknown', now it is 'Unix'.
Unix server type causing end line transformation, which in case of binary files, corrupts them.
https://api.rebex.net/##RebexTotalPack.chm/Html/P_Rebex_Net_Sftp_ServerType.htm

Application has SftpTransferType.Ascii setup in all methods. I suspect it remains from times when there was no binary files downloads.

Due to licencing I cannot modify production built of application.
I am looking for walkaround on server side. How to force server to present itself as 'Unknown' not 'Unix'.
After all, SunSSH1.1.9Solaris10 is as much Unix as OpenSSH7.7 on Solaris 11 is.


Viewing all articles
Browse latest Browse all 3862

Trending Articles