Class SshConfiguration

java.lang.Object
org.sentrysoftware.metricshub.engine.configuration.OsCommandConfiguration
org.sentrysoftware.metricshub.engine.configuration.SshConfiguration
All Implemented Interfaces:
IConfiguration

public class SshConfiguration extends OsCommandConfiguration
Configuration class for SSH connections. It represents the configuration for SSH (Secure Shell) connections in the MetricsHub engine.
  • Constructor Details

    • SshConfiguration

      public SshConfiguration(boolean useSudo, Set<String> useSudoCommands, String sudoCommand, Long timeout, String username, char[] password, File privateKey)
      Builder for creating instances of SshConfiguration.
      Parameters:
      useSudo - Flag indicating whether to use sudo for commands.
      useSudoCommands - Set of sudo commands to be used.
      sudoCommand - The sudo command to execute.
      timeout - The timeout for command execution in seconds.
      username - The SSH username for authentication.
      password - The SSH password for authentication.
      privateKey - The private key file for SSH key-based authentication.
  • Method Details