confirm fingerprint automatically

Advertisement

new_user
Guest

confirm fingerprint automatically

When i first login to a remote host with winSCP script (integrated in my C# program), I get the fingerprint message -

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?

Reply with quote

Advertisement

Guest

Re: confirm fingerprint automatically

martin wrote:

Please read documentation. If that does not help, come back.

I have read the documentation. But in order to use the "-hostkey" option i need to know the fingerprint in advance.

I am looking for a way to confirm the fingerprint without knowing it in advance.

In other words - looking for a way to send the "Y" and continue.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: confirm fingerprint automatically

Anonymous wrote:

I am looking for a way to confirm the fingerprint without knowing it in advance.
Switch to FTP then.
_________________
Martin Prikryl

Reply with quote

user
Guest

Re: confirm fingerprint automatically

martin wrote:

Anonymous wrote:

I am looking for a way to confirm the fingerprint without knowing it in advance.
Switch to FTP then.

Unfortunately on my implementation (secure environment) it's not an option.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: confirm fingerprint automatically

user wrote:

Unfortunately on my implementation (secure environment) it's not an option.
But you are not secure anymore, if you blindly accept any host key.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum