Determines whether the SSH system is connected and authenticated.
If the SSH system is not already connected the following method can be used
SshConnectionSettings settings = new SshConnectionSettings();
settings.Credentials.Username = "admin";
Disconnects from the remote SSH host. This is done automatically by the system when the scan completes.
Disconnects from the remote SSH host, and disposes of the connection. This is done automatically by the system when the scan completes.
Executes the specified command and returns the response.
Executes the specified command and returns the response on a Unix system. The exit code is checked and an exception thrown if the command did not execute successfully. The method takes the useSudo parameter to determine if sudo should be used to execute the command.
Ssh.ExecuteUnixCommand("cat /etc/hosts", true);
Executes the specified command and returns the response on a remote system that does not respond using industry standard new line characters.
The command prompt currently displayed on the SSH host.
The settings used to establish the SSH connection.