WinSCP .NET assembly refusing SSH-ED25519 key fingerprint
My script is giving me the following error message while trying to establish a server connection:
Fingerprint details have been copied from the GUI client:
This connection works fine when using the GUI client.
What's missing?
Thanks,
Archie
Connection parameters: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})*/
$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"
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
What's missing?
Thanks,
Archie