I am trying to run something like this (taken from the documentation)
using (var client = new SshClient("host", "username", "password"))
var cmd = client.CreateCommand("date");
First execute goes well, second execute throws "An established connection was aborted by the software in your host machine.".
Disconnecting and Connecting again solves the problem (but I hate doing so).
Running the same code while connecting to a different machine works perfectly.
Any ideas ?