Quantcast
Channel: sshnet Discussions Rss Feed
Viewing all articles
Browse latest Browse all 1729

New Post: Sending a command SshClient, timeout?

$
0
0
Hi I have got the SshClient to work fine.
But when I want to erase and reload a device it hangs and obviously will not reconnect as it has different credentials.
Is there a way to issue a command and disconnect as soon as the command is sent, or have a timeout of like 10 seconds, so if it cannot reconnect it goes to the next line

var command= client.RunCommand("reset");
command.Execute();

Thanks

Viewing all articles
Browse latest Browse all 1729

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>