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

jrmcjim

Thank you Martin! Got it and got it done.
martin

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.
jrmcjim

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})*/
martin

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

Use only the SHA-256 fingerprint (the stronger one) in your code.

WinSCP GUI can generate a code template for you:
https://winscp.net/eng/docs/ui_generateurl#code
jrmcjim

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