Topic "In .Net Assembly, how to accept any host key fingerprint?"

Author Message
[View user's profile]

Joined: 2014-02-06
Posts: 3
Location: Canada
Yes, I know it is not as secure
but we are a large government organization with many departments and so our servers are all on the 'intranet'. Our IT administrators would prefer that we accept any host key finger prints... so as to avoid the extra maintenance of adding / configuring this to our code.

i.e. I can develop locally in our development environment, but have zero access to the QA and PROD environments, and so therefore, no way for me to configure my application with the host key fingerprints... and the IT Administrators do not want to go through these extra steps.

I searched in this forum - I understand there is a command line scripting interface to do it (use -hostkey=* switch of open command), and you can also do this in the GUI interactively... but how do I do it in .Net code?

Thank you.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26889
Location: Prague, Czechia
See SessionOptions.GiveUpSecurityAndAcceptAnySshHostKey:
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License