login about faq

When connection from C# using ChilKat SFTP i never get prompted if I accept the HostKeyFingerPrint or not.

//SFtp.HostKeyFingerprint is empty SFtp.Connect(hostname, port); //SFtp.HostKeyFingerprint got a value

I can't find any method to tun the automatic acceptance of the HostKeyFingerPrint on/off.

asked Feb 04 '14 at 03:07

Hakan's gravatar image


I think it is up to you to maintain a database/list of known Host Keys, and then compare the contents of the HostKeyFingerprint property after you connect to the server to see if it is a known host. If unknown, you can then inform the user and request permission to connect. If granted permission, store the host key in your known hosts database/file. If not granted permission, disconnect.


answered Feb 04 '14 at 08:44

jpbro's gravatar image

jpbro ♦

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Feb 04 '14 at 03:07

Seen: 1,451 times

Last updated: Feb 04 '14 at 08:44

Related questions

powered by OSQA