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

Advertisement

daniel_onofri@hotmail.com
Joined:
Posts:
1

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
}

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,504
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum