Class SshConnectionOptions

java.lang.Object
com.shaft.cli.SshConnectionOptions

public final class SshConnectionOptions extends Object
Immutable SSH connection settings for reusable TerminalActions remote terminals.
  • Method Details

    • builder

      public static SshConnectionOptions.Builder builder()
    • fromKeyFile

      public static SshConnectionOptions fromKeyFile(String host, int port, String username, String sshKeyFileFolderName, String sshKeyFileName, boolean verbose)
      Builds permissive legacy options for existing string-based remoteTerminal(...) overloads.
    • validate

      public void validate()
    • toRedactedDescription

      public String toRedactedDescription()
    • getHost

      public String getHost()
    • getPort

      public int getPort()
    • getUsername

      public String getUsername()
    • getPrivateKey

      public Path getPrivateKey()
    • getPrivateKeyPassphrase

      public String getPrivateKeyPassphrase()
    • getPassword

      public String getPassword()
    • getKnownHosts

      public Path getKnownHosts()
    • isStrictHostKeyChecking

      public boolean isStrictHostKeyChecking()
    • getKeyboardInteractive

      public SshConnectionOptions.KeyboardInteractive getKeyboardInteractive()
    • getExtraJschConfig

      public Map<String,String> getExtraJschConfig()
    • isVerbose

      public boolean isVerbose()