use of private key with VB:NET

Advertisement

con8mi
Joined:
Posts:
3

use of private key with VB:NET

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

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum