SessionOptions.GiveUpSecurityAndAcceptAnyTlsHostCertificate = true has no effect

Advertisement

vargonian
Joined:
Posts:
2

SessionOptions.GiveUpSecurityAndAcceptAnyTlsHostCertificate = true has no effect

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.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum