SSH Host Key fingerprint does not match pattern – C#
Hi,
I am trying to connect to an FTP site running explicit FTP over TLS, but the script trips over the Host Key fingerprint:
This is the information from the FTP site:
The additional information shows Fingerprint (SHA1):
On attempting to connect I get the following error:
I am trying to connect to an FTP site running explicit FTP over TLS, but the script trips over the Host Key fingerprint:
SessionOptions sessionOptions = new SessionOptions { Protocol = WinSCP.Protocol.Ftp, FtpSecure = FtpSecure.ExplicitTls, HostName = "xxxxxxxxxxxxxxxxx", UserName = "xxxxxxxx", Password = "xxxxxxxx", SshHostKeyFingerprint = "ssh-rsa 2048 bb:9c:4c:05:f8:25:2b:8f:80:a3:75:b7:94:5c:ea:9f:fc:b2:12:18" };
Remote system = UNIX Type: L8 File transfer protocol = FTP Cryptographic protocol = TLS Explicit encryption, TLSv1 Encryption algorithm = TLSv1/SSLv3: IDEA-CBC-SHA, 2048 bit RSA Compression = No ------------------------------------------------------------ Certificate fingerprint bb:9c:4c:05:f8:25:2b:8f:80:a3:75:b7:94:5c:ea:9f:fc:b2:12:18 ------------------------------------------------------------ Can change permissions = Yes Can change owner/group = No Can execute arbitrary command = Protocol commands only Can create symlink/hardlink = No/No Can lookup user groups = No Can duplicate remote files = No Can check available space = No Can calculate file checksum = No Native text (ASCII) mode transfers = No ------------------------------------------------------------
bb:9c:4c:05:f8:25:2b:8f:80:a3:75:b7:94:5c:ea:9f:fc:b2:12:18
Can anyone point me in the right direction?SSH host key fingerprint \"ssh-rsa 2048 bb:9c:4c:05:f8:25:2b:8f:80:a3:75:b7:94:5c:ea:9f:fc:b2:12:18\" 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})*/