using required hostkey in winscp.com versus VB.net and dll
I'm looking to retrieve a file via sftp from several remote systems (I've already connected to all the systems and the keys have been added to Putty's cache).
When using winscp.com I can use:
This works correctly for any IP I use.
When I try this using vb.net and the dll it doesn't.
I get an error Error: System.ArgumentException: SSH host key fingerprint does not match pattern
The only way I have gotten this to work so far is to enter the specific key
I have a lot of systems to connect to (and new ones will be added as well) and prefer not to hard code all the keys in my application. Is there a way to get this to work like winscp.com so I can just use "xx:xx:xx..." for all the systems I connect to?
When using winscp.com I can use:
open sftp://username:password@10.22.49.14/ -hostkey="ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
This works correctly for any IP I use.
When I try this using vb.net and the dll it doesn't.
.SshHostKeyFingerprint = "ssh-rsa 2048 xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx"
I get an error Error: System.ArgumentException: SSH host key fingerprint does not match pattern
The only way I have gotten this to work so far is to enter the specific key
.SshHostKeyFingerprint = "ssh-rsa 2048 9e:f1:1e:93:91:37:ed:dd:ee:51:4e:c4:66:6f:bb:68"
I have a lot of systems to connect to (and new ones will be added as well) and prefer not to hard code all the keys in my application. Is there a way to get this to work like winscp.com so I can just use "xx:xx:xx..." for all the systems I connect to?