0 votes
by (170 points)

            ssh.Connect(ip);
            ssh.Login(user, pass);

            ///set scripting timeout to 1000mins
            ssh.Timeout = 60000000;

            //start scripting
            scripting = ssh.StartScripting();

            //set scripting timeout to 240 mins
            scripting.Timeout = 14400000;

                scripting.SendCommand(" validate");

                //this is where I get exception
                scripting.WaitFor(ScriptEvent.FromString(")>"));

1 Answer

0 votes
by (15.2k points)
edited by


//set SSH timeout to 1000 minutes
ssh.Timeout = 1000*60*1000;
ssh.Connect(ip);
ssh.Login(user, pass);

//start scripting
scripting = ssh.StartScripting();
//set scripting timeout to 240 minutes
scripting.Timeout = 240*60*1000;

by (170 points)
Hi Pavel,

This solves my problem. Thanks again for your reply.
...