How do I set up my dot net program to send files to server with multiple host key fingerprints?

Advertisement

jrmcjim
Joined:
Posts:
3
Location:
US

How do I set up my dot net program to send files to server with multiple host key fingerprints?

Martin,
I have a program that sends files to multiple sites that until now had a single fingerprint.

I now have a site that has an SHA-256 and MD5 fingerprint and I have not discovered how to set this up in my code.

Thanks,
Jim

Reply with quote

Advertisement

jrmcjim
Joined:
Posts:
3
Location:
US

Thanks Martin. I finally understood (I think) what you referred me to and generated the stub to connect. Using the Host Key Fingerprint from the generated code, I received the following error:
SSH host key fingerprint "ssh-rsa 2048 1gqvgmbEUGYL+fKsHOMQrHmAtl3MflTavgKK6kIdl04=" does not match pattern /((ssh-rsa|ssh-dss|ssh-ed25519|ecdsa-sha2-nistp(256|384|521))( |-))?(\d+ )?([0-9a-f]{2}(:|-)){15}[0-9a-f]{2}(;((ssh-rsa|ssh-dss|ssh-ed25519|ecdsa-sha2-nistp(256|384|521))( |-))?(\d+ )?([0-9a-f]{2}(:|-)){15}[0-9a-f]{2})*/

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
30,449
Location:
Prague, Czechia

Then your .NET program is using an old version of the WinSCP .NET assembly that didn't support SHA-256 fingerprints at all.
https://winscp.net/tracker/1589

Update to the latest version (preferred). Or use MD5 fingerprint.

Reply with quote

Advertisement

You can post new topics in this forum