The private key is analogous to a password - it needs to be provided by the server administrator.
ok, thanks - it is what I thought
I havent been successful here at all - I think it is an ignorance on both ends - mine and the customers.
The customer has an SFTP Server with a Public Key file.
They have set up a user for me to use to connect to the server -
They would like it that I do not have to supply a Password.
My understanding for this set up is then that I (the client) would need to generate a Private Key (using PuttyGEN.exe - saving a Private Key File) and send that to the customer to tell them this is my Private Key (they only accept the OpenSSH key file so I export as OpenSSH key and email it to them)
They load that private key file to their Server
now I should be able to connect to their SFTP site using both their Public Key and my Private Key
.ServerValidation = SecureFTPServerValidationType.Automatic
.KnownHosts.AddKnownHost("thecustomers.com", "theirPublicKeyFile.pub")
.AuthenticationMethod = EnterpriseDT.Net.Ssh.AuthenticationType.PublicKey
.ClientPrivateKeyFile = "mike_private_key_unprotected.pub"
and this should work?
I'm not having much luck here