public class SSHConnection extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONNECTION_TIMEOUT |
static int |
DEFAULT_PORT |
| Constructor and Description |
|---|
SSHConnection()
create new instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
connect() |
void |
connect(int nTimeout) |
void |
disconnect() |
SSHIdentity |
getIdentity() |
Object |
openChannel(String sChannel) |
void |
setHost(String sHost) |
void |
setIdentity(SSHIdentity aIdentity) |
void |
setKnownHostsFile(String sFile) |
void |
setPort(int nPort) |
public static final int DEFAULT_PORT
public static final int DEFAULT_CONNECTION_TIMEOUT
public void setIdentity(SSHIdentity aIdentity) throws Exception
Exceptionpublic SSHIdentity getIdentity() throws Exception
ExceptionCopyright © 2016 as-development.net. All rights reserved.