Topic "confirm fingerprint automatically"

Author Message
new_user

Guest


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

Quote:
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?
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Please read documentation. If that does not help, come back.
Guest




prikryl 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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
Anonymous wrote:
I am looking for a way to confirm the fingerprint without knowing it in advance.

Switch to FTP then.
_________________
Martin Prikryl
user

Guest


prikryl 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.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24991
Location: Prague, Czechia
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
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License