Class SshConnectionOptions
java.lang.Object
com.shaft.cli.SshConnectionOptions
Immutable SSH connection settings for reusable
TerminalActions remote terminals.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classstatic interfaceSupplies responses for JSch keyboard-interactive authentication prompts. -
Method Summary
Modifier and TypeMethodDescriptionstatic SshConnectionOptions.Builderbuilder()static SshConnectionOptionsfromKeyFile(String host, int port, String username, String sshKeyFileFolderName, String sshKeyFileName, boolean verbose) Builds permissive legacy options for existing string-basedremoteTerminal(...)overloads.getHost()intgetPort()booleanbooleanvoidvalidate()
-
Method Details
-
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-basedremoteTerminal(...)overloads. -
validate
public void validate() -
toRedactedDescription
-
getHost
-
getPort
public int getPort() -
getUsername
-
getPrivateKey
-
getPrivateKeyPassphrase
-
getPassword
-
getKnownHosts
-
isStrictHostKeyChecking
public boolean isStrictHostKeyChecking() -
getKeyboardInteractive
-
getExtraJschConfig
-
isVerbose
public boolean isVerbose()
-