Determines whether the SFTP system is connected and authenticated.
It is recommended to use the existing connection, however if the SFTP system is not already connected the following method can be used to connect to the SSH server.
The password will be stored in the code of the plugin in plain text.
SshConnectionSettings settings = new SshConnectionSettings();
settings.Enabled = true;
settings.Credentials.UseDefaultCredentials = false;
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.
Determines whether a file at the specified path exists.
Returns the information about the file at the specified path such as creation date, last modified date, owner, and file size.
Returns the size of the file at the specified path in bytes.
Returns the contents of the text file at the specified path.
The settings used to establish the SFTP connection over SSH.