Namespace: BurnSoft.SecureShell
Connect to a host and execute a ssh command on that host
public class SSHCommandInheritance Object → SSHCommand
public SSHCommand()Runs the command.
public static string RunCommand(string host, string uid, string pwd, string cmd, String& errOut)host String
The host.
uid String
The uid.
pwd String
The password.
cmd String
The command.
errOut String&
The error out.
String
System.String.
SSHs the alive.
public static bool SSHAlive(string host, string uid, string pwd, String& errOut)host String
The host.
uid String
The uid.
pwd String
The password.
errOut String&
The error out.
Boolean
true if XXXX, false otherwise.
Devices the is up.
public static bool DeviceIsUp(string host, String& errOut, int timeout)host String
The host.
errOut String&
The error out.
timeout Int32
The timeout.
Boolean
true if XXXX, false otherwise.
Exception
No Host or IP Listed!