Topic "use of private key with VB:NET"

Author Message
con8mi
[View user's profile]

Joined: 2013-06-05
Posts: 3
Hi
I created a connection with WINSCP version 5.1.5 build 3261 and a private key, this connection work correctly.

I try to develop a VB program with the parameters identically to graphic interface:

.Protocol = Protocol.Sftp
.HostName = "139.15.233.22"
.PortNumber = "11422"
.UserName = "itacbostime"
.SshPrivateKeyPath = "D:\Visual Studio 2008\Projects\ADP-SEND-FILE\ADP-SEND-FILE\bin\Debug".

the istruction "session.Open(sessionOptions)" jump to error (catch).

Can you help me to solve this situation.

Thanks in advance

Mauro
con8mi
[View user's profile]

Joined: 2013-06-05
Posts: 3
Hi
I solve, I inserted the correct SshHostKeyFingerprint.
sorry but I'm a beginner

Mauro
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License