Some commands are still freezing on the errreader.ReadToEnd() . Also command response in inconsistent. I can run the exact same command twice, first time it works, second time no response.
cat /etc/*-release
Another issue is If I change the current directory it doesn't remember it between commands. Here is how I'm creating a connection: var PasswordConnection = new PasswordAuthenticationMethod(username, password);
var KeyboardInteractive = new KeyboardInteractiveAuthenticationMethod(username);
var connectionInfo = new ConnectionInfo(servername, username, PasswordConnection, KeyboardInteractive);
var client = new SshClient(connectionInfo);
client.Connect();