Topic "WinSCP .NET assembly refusing SSH-ED25519 key fingerprint"

Author Message
aptem.inc
[View user's profile]

Joined: 2016-10-20
Posts: 1
My script is giving me the following error message while trying to establish a server connection:

SSH host key fingerprint "ssh-ed25519 256 9a:8c:f0:09:2d:a3:41:1a:cc:52:27:03:f1:40:19:4d" does not match pattern /(ssh-rsa |ssh-dss )?\d+ ([0-9a-f]{2}Smile{15}[0-
9a-f]{2}(;(ssh-rsa |ssh-dss )?\d+ ([0-9a-f]{2}Smile{15}[0-9a-f]{2})*/

Connection parameters:

$sessionOptions = New-Object WinSCP.SessionOptions
$sessionOptions.Protocol = [WinSCP.Protocol]::Sftp
$sessionOptions.HostName = "aaa.bbb.ccc.ddd"
$sessionOptions.UserName = "xxxx"
$sessionOptions.Password = "yyyy"
$sessionOptions.SshHostKeyFingerprint = "ssh-ed25519 256 9a:8c:f0:09:2d:a3:41:1a:cc:52:27:03:f1:40:19:4d"

Fingerprint details have been copied from the GUI client:

File transfer protocol = SFTP-3
Cryptographic protocol = SSH-2
SSH implementation = OpenSSH_6.6.1
Encryption algorithm = aes
Compression = No
------------------------------------------------------------
Server host key fingerprint
ssh-ed25519 256 9a:8c:f0:09:2d:a3:41:1a:cc:52:27:03:f1:40:19:4d

This connection works fine when using the GUI client.

What's missing?

Thanks,
Archie
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26150
Location: Prague, Czechia
You are using an old version of the WinSCP .NET assembly. Upgrade to the latest version.
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