Timeout occurred due to inactivity when I execute (wodSSH / wodSSH.NET)
Hi,
I'm having difficulty to execute a command. To execute I got exception Timeout occurred due to inactivity. at WAITFOR. I want to execute a .sh file which is replaced on linux. So I am unable to execute .sh file. If anyone know please reply. Following is my code:
////************** CODE ********************////
private void button3_Click(object sender, EventArgs e)
{
Ssh1.Login = TextBox3.Text;
Ssh1.Password = TextBox4.Text;
Ssh1.Encryption = WeOnlyDo.Client.SSH.EncryptionMethods.Auto;
Ssh1.Protocol = WeOnlyDo.Client.SSH.SupportedProtocols.SSHAuto;
Ssh1.Port = 22;
Ssh1.Blocking = true;
Ssh1.Timeout = 40;
Ssh1.Hostname = cat.com ;
Ssh1.TerminalType = tty ;
Ssh1.Connect(TextBox2.Text);
}
private void Ssh1_Connected(object sender, WeOnlyDo.Client.SSH.ConnectedArgs e)
{
Ssh1.WaitFor( root@cat.com ); // I GOT EXCEPTION HERE
Ssh1.Prompt = root@cat.com ; // I GOT EXCEPTION HERE
Ssh1.Execute( /var/argole/backups
);
Ssh1.Execute( ./backup.sh
); // backup.sh is a file on linux
}
//// ******************************************************* /////
Complete thread:
- Timeout occurred due to inactivity when I execute - sajjad, 2009-03-17, 07:55
- Re: Timeout occurred due to inactivity when I exec - woddrazen, 2009-03-17, 09:00
- Re: Timeout occurred due to inactivity when I exec - sajjad, 2009-03-20, 08:24
- Re: Timeout occurred due to inactivity when I exec - wodDamir, 2009-03-20, 08:41
- Re: Timeout occurred due to inactivity when I exec - sajjad, 2009-03-20, 08:56
- Re: Timeout occurred due to inactivity when I exec - wodDamir, 2009-03-20, 09:18
- Re: Timeout occurred due to inactivity when I exec - wodDamir, 2009-03-20, 10:51
- Re: Timeout occurred due to inactivity when I exec - wodDamir, 2009-03-24, 10:09
- Re: Timeout occurred due to inactivity when I exec - wodDamir, 2009-03-20, 10:51
- Re: Timeout occurred due to inactivity when I exec - wodDamir, 2009-03-20, 09:18
- Re: Timeout occurred due to inactivity when I exec - sajjad, 2009-03-20, 08:56
- Re: Timeout occurred due to inactivity when I exec - wodDamir, 2009-03-20, 08:41
- Re: Timeout occurred due to inactivity when I exec - sajjad, 2009-03-20, 08:24
- Re: Timeout occurred due to inactivity when I exec - woddrazen, 2009-03-17, 09:00