Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

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)


Topic review


Re: WinSCP .NET assembly refusing SSH-ED25519 key fingerprint

You are using an old version of the WinSCP .NET assembly. Upgrade to the latest version.

WinSCP .NET assembly refusing SSH-ED25519 key fingerprint

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}:){15}[0-
9a-f]{2}(;(ssh-rsa |ssh-dss )?\d+ ([0-9a-f]{2}:){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?