Topic "Host key Unverified"

Author Message
jerky676
[View user's profile]

Joined: 2012-03-07
Posts: 1
I have tried with mixed success to connect to several severs using the winscp assembly.
I occasionally run into servers when trying to connect I get error Host Key Unverified.
i had used Session.DefaultConfiguration = False on my session but that does not work every server.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Use SessionOptions.HostKey to set expected host key.
https://winscp.net/eng/docs/library_sessionoptions

Using Session.DefaultConfiguration is not recommended.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License