Post a reply

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)


Topic review


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:

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