I am using Tamir.SharpSSH to make SFTP connections. I have servers' host, port, username, password and servers' fingerprint.
I am able to connect to the server without the fingerprint. Is there any way to match the fingerprint that I have with the servers' before making the connection?
Following is my C#.Net code for the connection:
Sftp sftp = new Sftp(serverHost, userName, password);
try
{
if (portNumber > 0) sftp.Connect(portNumber);
else sftp.Connect();
sftp.Put(localFullFilePath, remoteFolder);
}