public abstract class SshClientCliSupport extends CliSupport
| Modifier and Type | Field and Description |
|---|---|
static String |
SSH_CLIENT_PORT_OPTION
Command line option used to indicate non-default target port
|
DEFAULT_IO_SERVICE_FACTORY| Modifier | Constructor and Description |
|---|---|
protected |
SshClientCliSupport() |
resolveIoServiceFactory, setupIoServiceFactory, showErrorpublic static final String SSH_CLIENT_PORT_OPTION
public static ClientSession setupClientSession(String portOption, BufferedReader stdin, PrintStream stdout, PrintStream stderr, String... args) throws Exception
Exceptionpublic static Path resolveIdentityFile(String id) throws IOException
IOExceptionpublic static SshClient setupDefaultClient(Map<String,?> options, PrintStream stdout, PrintStream stderr, String... args)
public static SshClient setupClient(Map<String,Object> options, List<NamedFactory<org.apache.sshd.common.cipher.Cipher>> ciphers, List<NamedFactory<org.apache.sshd.common.mac.Mac>> macs, List<NamedFactory<org.apache.sshd.common.compression.Compression>> compressions, Collection<? extends Path> identities, BufferedReader stdin, PrintStream stdout, PrintStream stderr, String[] args) throws Exception
Exceptionpublic static org.apache.sshd.common.keyprovider.FileKeyPairProvider setupSessionIdentities(ClientFactoryManager client, Collection<? extends Path> identities, BufferedReader stdin, PrintStream stdout, PrintStream stderr) throws Throwable
Throwablepublic static UserInteraction setupSessionUserInteraction(ClientAuthenticationManager client, BufferedReader stdin, PrintStream stdout, PrintStream stderr)
public static ServerKeyVerifier setupServerKeyVerifier(ClientAuthenticationManager manager, Map<String,?> options, BufferedReader stdin, PrintStream stdout, PrintStream stderr)
public static OutputStream resolveLoggingTargetStream(PrintStream stdout, PrintStream stderr, String... args)
public static OutputStream resolveLoggingTargetStream(PrintStream stdout, PrintStream stderr, String[] args, int maxIndex)
public static List<NamedFactory<org.apache.sshd.common.compression.Compression>> setupCompressions(PropertyResolver options, PrintStream stderr)
public static List<NamedFactory<org.apache.sshd.common.compression.Compression>> setupCompressions(String argName, String argVal, List<NamedFactory<org.apache.sshd.common.compression.Compression>> current, PrintStream stderr)
public static List<NamedFactory<org.apache.sshd.common.mac.Mac>> setupMacs(PropertyResolver options, PrintStream stderr)
public static List<NamedFactory<org.apache.sshd.common.mac.Mac>> setupMacs(String argName, String argVal, List<NamedFactory<org.apache.sshd.common.mac.Mac>> current, PrintStream stderr)
public static List<NamedFactory<org.apache.sshd.common.cipher.Cipher>> setupCiphers(PropertyResolver options, PrintStream stderr)
public static List<NamedFactory<org.apache.sshd.common.cipher.Cipher>> setupCiphers(String argName, String argVal, List<NamedFactory<org.apache.sshd.common.cipher.Cipher>> current, PrintStream stderr)
public static Handler setupLogging(Level level, PrintStream stdout, PrintStream stderr, OutputStream outputStream)
Copyright © 2018 The Apache Software Foundation. All rights reserved.