Hallo.
Ich bin ja dabei ein Kleines Programchen zu schreiben,
und wollte jetzt ein Für Admin's schreiben.
Doch wie kann ich ein Befehl senden ?
Code
Public Class Form2
Dim WithEvents Ssh1 As WeOnlyDo.Client.SSH
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Ssh1 = New WeOnlyDo.Client.SSH() ' Initialize new instance
Ssh1.Login = "-/-" ' Set your login/username
Ssh1.Password = "-/-" ' Set your password
Ssh1.Connect("-/-") ' Connect, finally. Now wait for Connected event to occur
Ssh1.Encryption = WeOnlyDo.Client.SSH.EncryptionMethods.Auto ' Any encryption is ok
Ssh1.Command = "cd /home/car" ' Define command which we'll send to the server
Ssh1.Command = "screen ./samp03svr" ' Define command which we'll send to the server
End Sub
End Class
Alles anzeigen
MFG Gamer