private void btnUpdate_Click(object sender, EventArgs e)
{
SshClient client = new SshClient("192.168.1.1", "Administrator", "");
client.Connect();
if (client.IsConnected) {
MessageBox.Show("There is a connection");
}
client.RunCommand("System");
}
As you suggested, I updated to the beta library!However, it now says There is a connection, but it cannot run the command: Client not connected