Si alguien tiene una data de como hacerlo se los agradecería.
En el caso de SSH.NET el código es:
Código
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Me.Cursor = Cursors.WaitCursor 'Create the objects needed to make the connection' Dim sshConnectionInfo As New Renci.SshNet.PasswordConnectionInfo(SERVER, USER, PASS) Dim sshClient As New Renci.SshNet.SshClient(sshConnectionInfo) 'Need to hold the command' Dim cmd As Renci.SshNet.SshCommand Using sshClient 'connect to the server' sshClient.Connect() If sshClient.IsConnected Then 'si esta conectado 'Run the command' cmd = sshClient.RunCommand("y") Threading.Thread.Sleep(2000) cmd = sshClient.RunCommand("sed -i 's/VARS=.*/VARS=12/g' /tmp/dataconf.cfg #") Threading.Thread.Sleep(2000) cmd = sshClient.RunCommand("save #") Threading.Thread.Sleep(2000) cmd = sshClient.RunCommand("reboot #") Me.Cursor = Cursors.Default Else 'NO ESTA CONECTADO End If End Using End Sub
Se que el comando reboot funciona, los anteriores no se ven cambios.