| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static int | |
| public static String | Returns: The entire output read from stdout.the SSH remote URI sshUri, CredentialsProvider the provider, FS CredentialsProvider or null.the fs, String FS implementation passed to
SshSessionFactorythe remote command to execute. command, int a timeout in seconds. The timeout may be exceeded in corner
cases. timeout)Utility to execute a remote SSH command and read the first line of output. |
| SshSupport | back to summary |
|---|---|
| public SshSupport() | |
| checkTimeout | back to summary |
|---|---|
| private static int checkTimeout(String command, int timeout, long since) throws CommandFailedException | |
| runSshCommand | back to summary |
|---|---|
| public static String runSshCommand(URIish sshUri, CredentialsProvider provider, FS fs, String command, int timeout) throws IOException, CommandFailedException Utility to execute a remote SSH command and read the first line of output.
| |