Re: wodSFTP/wodKeys problem - WeOnlyDo Discussion board

Re: wodSFTP/wodKeys problem (General questions)

by Steve, Friday, March 28, 2008, 15:29 (5882 days ago) @ Steve

I created a simple project with just this code:

Option Explicit
Dim Keys As WODSSHKeyLib.Keys
Dim WithEvents SFTP1 As wodSFTPCom

Private Sub Form_Load()
Dim Key As Keys
Set SFTP1 = New wodSFTPCom
Set Key = New Keys

Key.Load f:newprivatekeyputty.ppk

SFTP1.HostName = hba-barr-cbas
SFTP1.Authentication = authPubkey
SFTP1.Login = sshuser
SFTP1.PrivateKey = Key
SFTP1.Blocking = True
SFTP1.Connect
Debug.Print SFTP1.StateText
Stop
End Sub


Same error, -1


Complete thread: