Re: SSH.net Exception :: Timeout occurred due to i (General questions)

by wodDamir, (4664 days ago) @ Jairo Martinez

Hi Jairo,

Actually, the exception is thrown since wodSSH.Netnever receives the prompt specified.

However, what happens if you try something like this:

ssh.WaitFor( admin: , 10);
ssh.DataReady = 0;
ssh.Execute( call state\r\n , admin: , 10);

Please note that when 3rd parameter (timeout) is specified, component will not disconnect. It will proceed with the code (provided that you have global Timeout property set to higher value).

Regards,
Damba

locked

Complete thread: