Command execution When you need to terminte the command after specific time has passed you can use P:Renci.SshNet.SshCommand.CommandTimeout property. To specify time out property you must to create T:Renci.SshNet.SshCommand first. See examples below: Execute command and specify 10 sec timeout using (var client = new SshClient("host", "username", "password")) { client.Connect(); var cmd = client.CreateCommand("sleep 10s"); cmd.CommandTimeout = TimeSpan.FromSeconds(5); cmd.Execute(); client.Disconnect(); } P:Renci.SshNet.SshCommand.CommandTimeout T:Renci.SshNet.SshCommand