Re: wodSFTP/wodKeys problem - WeOnlyDo Discussion board

Re: wodSFTP/wodKeys problem (General questions)

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

So here's the new code fragment:

On Error Resume Next
Set SFTP1 = New wodSFTPCom
SFTP1.HostName = Text3.Text
SFTP1.Login = Text4.Text
'sftp1.password = not needed!!!!
SSHKeys.Load f:
ewprivatekeyputty.ppk

SFTP1.Authentication = authPubkey
SFTP1.PrivateKey = SSHKeys
SFTP1.Blocking = True
SFTP1.Connect
'Stop
If Err <> 0 Then
Text5.Text = Error: & Err.Description
Else
Text5.Text = Connecting...
End If
Stop
SFTP1.ListDir /

Same error, with Blocking on, a -1 .


Complete thread: