Topic "SessionOptions.GiveUpSecurityAndAcceptAnyTlsHostCertificate = true has no effect"

Author Message
[View user's profile]

Joined: 2015-05-26
Posts: 2
Even when I set this option, I still get the exception when using the .NET library:

ArgumentException: SessionOptions.Protocol is Protocol.Sftp or Protocol.Scp, but SessionOptions.HostKey is not set.

I am using SCP with an SSH private key file path specified, if that's relevant. As far as I understand it, setting SessionOptions.GiveUpSecurityAndAcceptAnyTlsHostCertificate should obviate the need to specify a host key, as stated in the documentation and forums.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
No, it's GiveUpSecurityAndAcceptAnySshHostKey:

Make sure you understand what you are doing when using the property!

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License