Can't Properly set PublicKeyFile using .Net

Advertisement

bwood
Joined:
Posts:
2

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
HostName
,
UserName
,
SshHostKeyFingerprint
, and
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.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum