.NET library - Accept any Ssh HostKey not working

Advertisement

BigFranz
Guest

.NET library - Accept any Ssh HostKey not working

Hello,

I want to use the .NET library just for getting the existing files in a remote folder and download them to a local folder. But I'm working on different servers and I don't know the exact SshHostKeyFingerprint. But I'm sure the connection is safe, because I have a direct link between PC and Server.

In the documentation of the SessionOption class is a property called GiveUpSecurityAndAcceptAnySshHostKey (https://winscp.net/eng/docs/library_sessionoptions#giveupsecurityandacceptanysshhostkey) but I can't use it, this property is not available in my IDE (VB2010) => It's not a member of WinSCP.SessionOption

I'm working with the SCP-protocol.

The version of my library is 1.0.7.3394.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,476
Location:
Prague, Czechia

Re: .NET library - Accept any Ssh HostKey not working

Make sure you have the latest version of WinSCP. The SessionOptions.GiveUpSecurityAndAcceptAnySshHostKey is available since WinSCP 5.2.

Reply with quote

Advertisement

You can post new topics in this forum