Posted: 2014-11-19 21:26
I have a requirement that we connect to a remote SFTP server to upload some files. The remote server does not accept username/password authentication -- and instead only accepts public key authentication, where each client needs to present a client certificate to be authenticated/authorized.
How can I use (the latest) WinSCP .Net Assembly (via Powershell) to automate this process? I currently use the assembly in the username/password format and things work fine, but this is a totally different requirement so I'm wondering if I can extend the script already created of if I need to look elsewhere.
Location: Prague, Czechia
WinSCP does not support client certificates.
On the other hand, client certificates are used with TLS/SSL (FTPS or WebDAVS).
They are NOT used with SFTP, that you claim to use.
SFTP uses simple private/public key pair.
So if you actually want to use private key for authentication, use
You can post new topics in this forum
And it's free!