public class SshConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected static int |
SSH_DEFAULT_PORT |
| Constructor and Description |
|---|
SshConfiguration(com.jcraft.jsch.ConfigRepository configRepository) |
| Modifier and Type | Method and Description |
|---|---|
static SshConfiguration |
getConfiguration() |
java.lang.String |
getHostName(java.lang.String host) |
java.lang.String |
getHostUser(java.lang.String host) |
static java.nio.file.Path |
getLocalSshConfigPath() |
SshProxyCommand |
getProxyCommandConfiguration(java.lang.String host) |
com.jcraft.jsch.Session |
openSession(java.lang.String host) |
com.jcraft.jsch.Session |
openSession(java.lang.String hostUser,
java.lang.String jumpHost,
int jumpPort) |
protected static final int SSH_DEFAULT_PORT
public SshConfiguration(com.jcraft.jsch.ConfigRepository configRepository)
throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionpublic static SshConfiguration getConfiguration() throws java.io.IOException, com.jcraft.jsch.JSchException
java.io.IOExceptioncom.jcraft.jsch.JSchExceptionpublic static java.nio.file.Path getLocalSshConfigPath()
public SshProxyCommand getProxyCommandConfiguration(java.lang.String host)
public java.lang.String getHostUser(java.lang.String host)
public java.lang.String getHostName(java.lang.String host)
public com.jcraft.jsch.Session openSession(java.lang.String host)
throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchExceptionpublic com.jcraft.jsch.Session openSession(java.lang.String hostUser,
java.lang.String jumpHost,
int jumpPort)
throws com.jcraft.jsch.JSchException
com.jcraft.jsch.JSchException