SFTP - How to automatic accept server fingerprint???

Discuss RoboTask here
Post Reply
RoboTaskDISA
Posts: 1
Joined: Mon Feb 29, 2016 9:42 pm

SFTP - How to automatic accept server fingerprint???

Post by RoboTaskDISA »

I'm trying to develop new task using sftp commands but command return this error:

E: 28/02/2016 22:09:43: Can't open SFTP session
E: 28/02/2016 22:09:43: The server's host key is not cached in the registry. You
E: 28/02/2016 22:09:43: have no guarantee that the server is the computer you
E: 28/02/2016 22:09:43: think it is.
E: 28/02/2016 22:09:43: The server's rsa2 key fingerprint is:
E: 28/02/2016 22:09:43: ssh-rsa 2048 61:c8:32:62:ab:e4:5b:0f:8d:fa:e2:32:bf:fa:67:73
E: 28/02/2016 22:09:43: If you trust this host, enter "y" to add the key to
E: 28/02/2016 22:09:43: PuTTY's cache and carry on connecting.
E: 28/02/2016 22:09:43: If you want to carry on connecting just once, without
E: 28/02/2016 22:09:43: adding the key to the cache, enter "n".
E: 28/02/2016 22:09:43: If you do not trust this host, press Return to abandon the
E: 28/02/2016 22:09:43: connection.
E: 28/02/2016 22:09:43: Store key in cache? (y/n) ftp.test.sftp.01@interfile.disagrupo.es's password:
E: 28/02/2016 22:09:43: ftp.test.sftp.01@interfile.disagrupo.es's password:
E: 28/02/2016 22:09:43: An error occurred. Step #1 (SFTP Open (ftp.test.sftp.01@interfile.disagrupo.es)).
E: 28/02/2016 22:09:43: Task execution is aborted


Can you help me?
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: SFTP - How to automatic accept server fingerprint???

Post by Oleg »

According to error log you have input incorrect username/password for this sFTP server.
Oleg Yershov
mbenovic
Posts: 2
Joined: Fri Oct 15, 2010 8:02 am
Location: United States

Re: SFTP - How to automatic accept server fingerprint???

Post by mbenovic »

I am having a similar, but different problem.
The host changed their IP address and key.
I am positive the UserID and password are correct.
I can connect through FileZilla and other clients.
I am running RoboTask v6.8 with the SFTP plug-in v6.8.0.47
How can I accept the new key?

E: 10/13/2020 2:55:53 PM: Can't open SFTP session
E: 10/13/2020 2:55:53 PM: WARNING - POTENTIAL SECURITY BREACH!
E: 10/13/2020 2:55:53 PM: The server's host key does not match the one PuTTY has
E: 10/13/2020 2:55:53 PM: cached in the registry. This means that either the
E: 10/13/2020 2:55:53 PM: server administrator has changed the host key, or you
E: 10/13/2020 2:55:53 PM: have actually connected to another computer pretending
E: 10/13/2020 2:55:53 PM: to be the server.
E: 10/13/2020 2:55:53 PM: The new rsa2 key fingerprint is:
E: 10/13/2020 2:55:53 PM: ssh-rsa 2048 c3:21:37:95:95:a2:cc:06:52:ce:48:ac:aa:fe:a7:a9
E: 10/13/2020 2:55:53 PM: If you were expecting this change and trust the new key,
E: 10/13/2020 2:55:53 PM: enter "y" to update PuTTY's cache and continue connecting.
E: 10/13/2020 2:55:53 PM: If you want to carry on connecting but without updating
E: 10/13/2020 2:55:53 PM: the cache, enter "n".
E: 10/13/2020 2:55:53 PM: If you want to abandon the connection completely, press
E: 10/13/2020 2:55:53 PM: Return to cancel. Pressing Return is the ONLY guaranteed
E: 10/13/2020 2:55:53 PM: safe choice.
E: 10/13/2020 2:55:53 PM: Update cached key? (y/n, Return cancels connection)
E: 10/13/2020 2:55:53 PM: Timeout is over
E: 10/13/2020 2:55:53 PM: An error occurred. Step #1 (SFTP Open (mjholdings@sftp.amerch.com)).
E: 10/13/2020 2:55:53 PM: Task execution is aborted
Oleg
Site Admin
Posts: 3000
Joined: Thu Jan 01, 1970 1:00 am
Contact:

Re: SFTP - How to automatic accept server fingerprint???

Post by Oleg »

How can I accept the new key?
to Clear PuTTY's cache remove registry key
HKEY_CURRENT_USER\SoftWare\SimonTatham\PuTTY\SshHostKeys
Also you can remove the corresponding value only.

read more here please:
https://superuser.com/questions/197489/ ... on-windows

It seems we need to improve SFTP Open action...
Oleg Yershov
mbenovic
Posts: 2
Joined: Fri Oct 15, 2010 8:02 am
Location: United States

Re: SFTP - How to automatic accept server fingerprint???

Post by mbenovic »

That worked. Thanks!
Post Reply