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.
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.