get data back without events/forms and with blocking mode? - WeOnlyDo Discussion board

get data back without events/forms and with blocking mode? (wodSSH / wodSSH.NET)

by dirk, Saturday, February 08, 2020, 15:44 (1533 days ago) @ dirk

Hi

Set Ssh = New wodSSHCom
Set sshKeys = New WODSSHKeyLib.Keys

Ssh.LicenseKey = "my license"
Ssh.UseIPv6 = True

Ssh.DebugFile = "c:\sshdebug.log"
Ssh.HostName = strServer
Ssh.Columns = 200
Ssh.Port = 22
Ssh.Login = strUsername
Ssh.Password = strPassword

Ssh.Command = "date +" & Chr(34) & "%T" & Chr(34)
Ssh.Timeout = intTimeout


Ssh.Blocking = True
Ssh.Connect
strResponse = Ssh.Receive
Set sshKeys = Nothing
Set Ssh = Nothing
ssh_docheck = True


=> always gives a timeout, independantly of the actual set timeout. (and yes username/password are correct) What is even stranger is that I do not get a a "started session" on the screen of the server.

And this is what the logging (of the component shows):
*** OnConnect received, err = 0

Got 41 bytes
SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3


Complete thread: