Authenticate the public key provided tothe client. - WeOnlyDo Discussion board

Authenticate the public key provided tothe client. (wodSFTP / wodSFTP.NET / wodSFTPdll)

by sidharthapshenoy, Friday, April 22, 2016, 19:53 (2898 days ago)

Hi Team,

Sorry I am a newbie here. hence may be my question is slightly basic. Sorry for the same.

While doing an SFTP file transfer we have been advised by the security consultant that we need to authenticate if the server is the right one and has the right key available.
Could you please provide us source code where we can validate if the server has the right public key provided by us and if the key is valid( the server is authenticated) only then go ahead with the file transfer. ?

I am also not sure if the code below :
_wodSftp.Authentication = SFTP.Authentications.PublicKey

can be used to check if the public key is valid.

Please advise.

Thanks a lot for your advise.

Regards,
Sid


Complete thread: