Host key

Sep 15, 2011 at 8:14 AM

I'm not familiar with SFTP, but I understand that an SFTP-server identifies itself by giving a host key. I'm running a local SFTP-server for testing purposes, and it gives a rsa2 key fingerprint for example. Is there any way to retrieve this host key / key fingerprint in SSH.NET?

Sep 15, 2011 at 1:41 PM


I am retreving it internally for identification purposes,

if you like, you can set a break point and intercept the host key.

One place I would start is to look at KeyExchangeDiffieHellman class when it receives the host key back from the server.


Hope it helps,




Sep 15, 2011 at 7:36 PM
Edited Sep 15, 2011 at 7:36 PM

Thanks Oleg for your quick response, I will check it out soon.