WinSCP .NET assembly refusing SSH-ED25519 key fingerprint

Advertisement

aptem.inc
Joined:
Posts:
1

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?

Thanks,
Archie

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum