Topic "Error in Authenticating Host Key"

Author Message
scates

Guest


We are upgrading servers and have an SFTP protocol script connecting to a site using 5.1.4 which is currently working fine.
However, when we use the same script using 5.9.3 version it gives the following error:
Host key fingerprint is SSH-RSA 1024 55:61.....
Authentication failed

this is the command line we are using to test the connection:
>winscp.com
winscp>option batch abort
winscp>option confirm off


winscp>open sftp://martin:ppppppp@host.com -hostkey="ssh-rsa xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"

I cannot find any documentation regarding the 1024 or 2048 options on the ssh-rsa in the host key. Is that the cause of the error?

The new server is a windows server 2012 R2.

Thanks
scates

Guest


The host key we are using was supplied by the customer. It is way over 16 characters and does not have any colons.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26480
Location: Prague, Czechia
scates wrote:
The host key we are using was supplied by the customer. It is way over 16 characters and does not have any colons.

Does it start "ssh-rsa 5561", i.e. does it match the key shown by WinSCP (despite a different syntax)?

If it does, just use the format that WinSCP shows.
Advertisements

You can post new topics in this forum






Search

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