This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private lclSSHClient As Renci.SshNet.SshClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lclSSHClient = spmltMain.sshClient |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public Class clsCommandData | |
Public cmd As String | |
Public output As Renci.SshNet.SshCommand | |
End Class |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sshClient.Disconnect() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private Sub sshConnectionCheck_Tick(sender As Object, _ e As EventArgs) Handles sshConnectionCheck.Tick | |
If sshClient Is Nothing Then | |
sshConnectionStatus.Text = “Disconnected” | |
sshConnectionStatus.Image = My.Resources._1421807635_disconnect | |
Else | |
If Not sshClient Is Nothing AndAlso sshClient.IsConnected Then | |
sshConnectionStatus.Text = sshClient.ConnectionInfo.Host.Split(“.”).FirstOrDefault.ToUpper | |
sshConnectionStatus.Image = My.Resources._1421807639_connect | |
Else | |
sshConnectionStatus.Text = “Not Connected” |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sshClient = New Renci.SshNet.SshClient(sshConnectionInfo) | |
sshClient.Connect() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sshConnectionInfo = New Renci.SshNet.PasswordConnectionInfo(SSHHost.Text, SSHUser.Text, SSHPass.Text) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If Not sshClient Is Nothing AndAlso sshClient.IsConnected Then Exit Sub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Private sshConnectionInfo As Renci.SshNet.PasswordConnectionInfo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Public sshClient As Renci.SshNet.SshClient |