java.lang.Object
com.sshteam.lib.AbstractSshAutomation
- Direct Known Subclasses:
SshKeyCleanAutomation
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionprotected voidafterCommand(com.sshtools.sequins.Progress progress) protected voidbeforeCommand(com.sshtools.sequins.Progress progress) final intcall(com.sshtools.sequins.Progress progress) protected final com.sshtools.client.SshClientconnect(com.sshtools.sequins.Progress progress) protected longprotected StringgetCachedPasswordOrPrompt(String prompt) protected Stringprotected StringgetHost()protected Optional<com.sshtools.client.PassphrasePrompt>protected intgetPort()protected Optional<com.sshtools.sequins.Prompter>protected com.sshtools.client.SshClientgetSsh()protected Stringprotected booleanprotected booleanprotected booleanprotected booleanisRoot()protected booleanprotected voidonConnected(com.sshtools.client.SshClient ssh) protected StringreadPassword(String prompt) protected StringreadPassword(String prompt, boolean useCommandPassword) protected abstract intrunCommand(com.sshtools.sequins.Progress progress)
-
Field Details
-
ssh
protected com.sshtools.client.SshClient ssh
-
-
Method Details
-
call
- Throws:
Exception
-
readPassword
-
readPassword
-
getCachedPasswordOrPrompt
-
runCommand
protected abstract int runCommand(com.sshtools.sequins.Progress progress) -
beforeCommand
protected void beforeCommand(com.sshtools.sequins.Progress progress) -
afterCommand
protected void afterCommand(com.sshtools.sequins.Progress progress) throws IOException, com.sshtools.common.ssh.SshException - Throws:
IOExceptioncom.sshtools.common.ssh.SshException
-
connect
protected final com.sshtools.client.SshClient connect(com.sshtools.sequins.Progress progress) throws IOException, com.sshtools.common.ssh.SshException - Throws:
IOExceptioncom.sshtools.common.ssh.SshException
-
onConnected
protected void onConnected(com.sshtools.client.SshClient ssh) -
isRoot
protected boolean isRoot() -
getUsername
-
getPrompter
-
getHost
-
getPort
protected int getPort() -
isAgentAuthentication
protected boolean isAgentAuthentication() -
isPasswordAuthentication
protected boolean isPasswordAuthentication() -
isDefaultIdentities
protected boolean isDefaultIdentities() -
getAgentSocket
-
getIdentityFile
-
getCommandName
-
isVerboseProgress
protected boolean isVerboseProgress() -
getPassphraseSupplier
-
getPasswordSupplier
-
getAuthenticationTimeout
protected long getAuthenticationTimeout() -
getSsh
protected com.sshtools.client.SshClient getSsh()
-