confirm fingerprint automatically
When i first login to a remote host with winSCP script (integrated in my C# program), I get the fingerprint message -
The problem is that i can't confirm the fingerprint from within my C# code and have to manually connect with winSCP to this machine and confirm the signature in the first time.
Is there a way to do it automatically?
Authenticating...
The server's host key was not found in the cache. You have no guarantee that the server is the computer you think it is.
The server's rsa2 key fingerprint is:
ssh-rsa 1024 88:67:f5:6c:be:8b:a1:cc:4f:d3:7e:c1:b0:9f:d1:e1
If you trust this host, press Yes. To connect without adding host key to the cache, press No. To abandon the connection press Cancel.
Continue connecting and add host key to the cache?
(Y)es, (N)o, C(a)ncel, (C)opy Key: Cancel
Host key wasn't verified!
Authentication failed.
The problem is that i can't confirm the fingerprint from within my C# code and have to manually connect with winSCP to this machine and confirm the signature in the first time.
Is there a way to do it automatically?