Telnet problem (wodSSH / wodSSH.NET)
Hi all
I´m having a bit of a problem using the Telnet protocol. I´ve successfully used SSHAuto to connect to Unix hosts, but i can´t
seem to get Telnet to work on Windows hosts. It looks like it´s
the WaitFor method that´s giving me the problem, i just times out.
If i don´t use it, the Execute method won´t fire.
[code]
Dim wodSSH1 As New wodSSH
With wodSSH1
.HostName = server
.Login = user
.Password = psw
.Port = 23
.Protocol = Telnet
.Blocking = True
.Connect
.WaitFor regex:[>] $ , 5
End With
If wodSSH1.DataReady > 0 Then wodSSH1.Receive
Trash = wodSSH1.Execute( find /I completed & LogWin & vbCrLf)
wodSSH1.Disconnect
[/code]
If i connect to the host using a regular telnet client, i get the
below when i connect, so what should i use as regex?
Welcome to Microsoft Telnet Service
login: administrator
password:
*===============================================================
Welcome to Microsoft Telnet Server.
*===============================================================
C:Documents and SettingsAdministrator>
Complete thread:
- Telnet problem - Maverick2004, 2005-02-14, 14:30
- Re: Telnet problem - wodSupport, 2005-02-14, 14:34
- Re: Telnet problem - Maverick2004, 2005-02-14, 15:01
- Re: Telnet problem - wodSupport, 2005-02-14, 15:21
- Re: Telnet problem - Maverick2004, 2005-02-14, 15:48
- Re: Telnet problem - Maverick2004, 2005-02-14, 16:21
- Re: Telnet problem - wodSupport, 2005-02-14, 16:25
- Re: Telnet problem - Maverick2004, 2005-02-15, 13:19
- Re: Telnet problem - wodSupport, 2005-02-14, 16:25
- Re: Telnet problem - Maverick2004, 2005-02-14, 16:21
- Re: Telnet problem - Maverick2004, 2005-02-14, 15:48
- Re: Telnet problem - wodSupport, 2005-02-14, 15:21
- Re: Telnet problem - Maverick2004, 2005-02-14, 15:01
- Re: Telnet problem - wodSupport, 2005-02-14, 14:34