Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

F-Multi

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.