Re: Recieve problem (General questions)
That did the trick! Thanks! =)
Another question, if i may ask this in the same post.
When my app launches, the user has to enter username
and password. These are later in the app used to connect
to the host and run the commands. How can i check that the
username and passwords are correct when the user enters them?
I need some form of code that just connects/disconnects to
check the username/password, and if it cannot connect with the supplied credentilas, provide an msgbox. I´ve tried using the
below code, but it doesn´t seem to fire, even if i enter the
wrong username/password?
[code]
With wodSSH1
.HostName = server
.Login = user
.Password = psw
.Port = 22
.Protocol = SSHAuto
.Connect
End With
Private Sub wodSSH1_Connected(ByVal ErrorCode As Integer, ByVal ErrorText As String)
If ErrorCode > 0 Then
MsgBox Error & ErrorCode & has occured: & ErrorText, vbCritical, Connection error
Screen.MousePointer = vbDefault
Exit Sub
Else
wodSSH1.Disconnect
End If
End Sub
[/code]
Complete thread:
- Recieve problem - Maverick2004, 2005-02-15, 14:27
- Re: Recieve problem - wodSupport, 2005-02-15, 14:30
- Re: Recieve problem - Maverick2004, 2005-02-15, 14:50
- Re: Recieve problem - wodSupport, 2005-02-15, 14:53
- Re: Recieve problem - Maverick2004, 2005-02-15, 15:28
- Re: Recieve problem - wodSupport, 2005-02-16, 23:54
- Re: Recieve problem - Maverick2004, 2005-02-17, 08:24
- Re: Recieve problem - Maverick2004, 2005-02-17, 08:26
- Re: Recieve problem - wodSupport, 2005-02-17, 23:22
- Re: Recieve problem - Maverick2004, 2005-02-18, 13:49
- Re: Recieve problem - wodSupport, 2005-02-18, 15:56
- Re: Recieve problem - Maverick2004, 2005-02-23, 09:41
- Re: Recieve problem - wodSupport, 2005-02-23, 12:21
- Re: Recieve problem - Maverick2004, 2005-02-24, 16:17
- Re: Recieve problem - wodSupport, 2005-02-24, 20:42
- Re: Recieve problem - Maverick2004, 2005-02-28, 14:16
- Re: Recieve problem - wodSupport, 2005-02-24, 20:42
- Re: Recieve problem - Maverick2004, 2005-02-24, 16:17
- Re: Recieve problem - wodSupport, 2005-02-23, 12:21
- Re: Recieve problem - Maverick2004, 2005-02-23, 09:41
- Re: Recieve problem - wodSupport, 2005-02-18, 15:56
- Re: Recieve problem - Maverick2004, 2005-02-18, 13:49
- Re: Recieve problem - wodSupport, 2005-02-17, 23:22
- Re: Recieve problem - Maverick2004, 2005-02-17, 08:26
- Re: Recieve problem - Maverick2004, 2005-02-17, 08:24
- Re: Recieve problem - wodSupport, 2005-02-16, 23:54
- Re: Recieve problem - Maverick2004, 2005-02-15, 15:28
- Re: Recieve problem - wodSupport, 2005-02-15, 14:53
- Re: Recieve problem - Maverick2004, 2005-02-15, 14:50
- Re: Recieve problem - wodSupport, 2005-02-15, 14:30