Post a reply

Options
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)

Options

Topic review

martin

Re: SSH host key fingerprint "ssh-ed25519 255 xxxxxxx" does not match pattern /((ssh-rsa|ssh-dss|ssh...

Please post complete error message and complete host key (it's public key, it's not secret).

In general, this happens, if you generate the code using a newer version of WinSCP and try to use it with an old version of WinSCP, which does not support the newer host key algorithms.
daniel_onofri@hotmail.com

SSH host key fingerprint "ssh-ed25519 255 xxxxxxx" does not match pattern /((ssh-rsa|ssh-dss|ssh...

Good afternoon.
Trying to connect using C# with the code generated by WinSCP, I get the error:
SSH host key fingerprint "ssh-ed25519 255 xxxxxxx" does not match pattern /((ssh-rsa|ssh-dss|ssh...

// Configuración de opciones de sesión
SessionOptions sessionOptions = new SessionOptions
{
    Protocol = Protocol.Sftp,
    HostName = "xxx.xxx.xxx.xxx",
    UserName = "itlestron",
    SshHostKeyFingerprint = "ssh-ed25519 255 xxxxxx",
    SshPrivateKeyPath = @"D:\ClientesStahl\BigNatu\bignatu.ppk",
};
using (Session session = new Session())
{
    // Conexión
    session.Open(sessionOptions);
    // Código
}