URGENT - Autodisconnect - WeOnlyDo Discussion board

URGENT - Autodisconnect (General questions)

by Fahad, Saturday, July 30, 2005, 09:30 (7055 days ago)

I am using you component wodSSH.NETin VB.net, when i connect to my server and execute some command, it disconnect after executing it. What I want to do that it should not disconnect after executing my command and wait for other command to be executed. I use Timeout property but its does'nt work properly. Pleas help me in this regard, if you can provide me with some code.

My Code
=======
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Ssh1.Login = TextBox3.Text
Ssh1.Password = TextBox4.Text
Ssh1.Encryption = WeOnlyDo.Client.SSH.EncryptionMethods.Auto
Ssh1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSHAuto
Ssh1.Timeout = 30
Ssh1.Connect(TextBox2.Text)
Ssh1.Command = ls -lt & Chr(10)
End Sub

It should wait for my other command and then disconnect.


Complete thread: