Re: Subject closed.
Thanks!
If, as you say, the thumbprint is the key to trust, then life is easier as I know assume all the servers I may talk to are valid, as I got the list from AWS itself.
SshHostKeyFingerprint
is server's host key to trust. It's not used for authentication.
SFTPCopy
function?
Your code that uses scripting succeeds because you have the fingerprint cached. The .NET assembly never uses fingerprint cache.
-----BEGIN RSA PRIVATE KEY-----
...) I am not sure it cares about the AWS Access Key IDF and Secret Access Key. This is annoying because I am not sure how to get my program to recognize by the data in the credentials file the appropriate fingerprint to use. Usually I only have to enter said RSA key once and it is cached, but how do I pull that from the cache, or request it if not found so I can feed to WinSCP? (Eg search cache, if not found pop a dialog to let user enter it)
SshHostKeyFingerprint
to use if it is there, and enter it if not. Anybody know how this works? This may sadly be a Microsoft issue, not a WinSCP issue, but it relates to how they interoperate when using the API, and if we can solve this, I am sure it will prove useful to anybody using the API tools.
Amazon.Runtime.AWSCredentials credential =
new Amazon.Runtime.StoredProfileAWSCredentials(aprofile);
SFTPCopy
function which looks really nice, but it takes the SshHostKeyFingerprint
as an argument and not a keypair.