Home > database >  Why does sFTP fingerprint work in Filezilla but not when copied to C# when other copied fingerprints
Why does sFTP fingerprint work in Filezilla but not when copied to C# when other copied fingerprints

Time:10-19

I'm setting up to put files using sFTP to a client's server. I have an sFTP server to test and developed a client using WinSCP in C# VS2022 on Windows Server 2019. I initially logged on to the test server using Filezilla and copied the fingerprint by double clicking it. I pasted that into my C# client and it worked as expected.

I did the very same thing with the client's sFTP server, but I get the error: "SSH host key fingerprint does not match pattern". The format does look slightly different from mine:

SHA256:tUlL3I72i NOA.......DLTVoH35szgNVJiOGGhRV/ic

Mine has SHA256 [space] then the footprint. I'm not sure what the :tUlL3I72i is all about but I've tried removing it, turning the into a space, etc. but same error.

What am I missing and how can I fix this?

CodePudding user response:

FileZilla's Unknown host key box looks like this:

enter image description here

In WinSCP .NET assembly, that maps to the following value of enter image description here

  • Related