Can't Properly set PublicKeyFile using .Net
I'm connecting fine to my SFTP site using WinSCP UI using only user name & PublicKeyFile.
Using the .NET library, I'm setting , , , and
The session log, however, shows:
So the
Using the .NET library, I'm setting
HostName
UserName
SshHostKeyFingerprint
session.AddRawConfiguration("PublicKeyFile", @"C:\temp\id_rsa.ppk");
The session log, however, shows:
Command-line: ... PublicKeyFile="C:\temp\id_rsa.ppk" .... ... Server offered these authentication methods: publickey,password,keyboard-interactive Attempting keyboard-interactive authentication
So the
PublicKeyFile
is passed, but in the end, it doesn't seem to be used.