Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

Re: confirm fingerprint automatically

But you are not secure anymore, if you blindly accept any host key.
user

Re: confirm fingerprint automatically

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

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.
Guest

Re: confirm fingerprint automatically

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.
martin

Re: confirm fingerprint automatically

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

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?