Having exception when GiveUpSecurityAndAcceptAnySshHostKey is enabled

Advertisement

F-Multi
Joined:
Posts:
4

Having exception when GiveUpSecurityAndAcceptAnySshHostKey is enabled

Hello All,

I work with WinSCP in a closed enterprise network, so forcing users to enter fingerprints is a waste of time.

So I set GiveUpSecurityAndAcceptAnySshHostKey = true and when I try to connect, it throws an exception:

System.ArgumentException:
'SessionOptions.TlsHostCertificateFingerprint or SessionOptions.GiveUpSecurityAndAcceptAnyTlsHostCertificate is set,
but neither SessionOptions.FtpSecure nor SessionOptions.WebdavSecure is enabled.'

Setting FtpSecure = WinSCP.FtpSecure.Explicit, Implicit or None would not help, it still throws, same for WebdavSecure.
How can I bypass this issue?

Thank you.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum