public class SSHSessionExec
extends java.lang.Object
Constructor and Description |
---|
SSHSessionExec(java.lang.String host,
int port,
java.lang.String login,
java.lang.String pswd) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
command(java.lang.String command) |
void |
connect() |
void |
disconnect() |
int |
getTimeout() |
void |
setTimeout(int timeout) |
public SSHSessionExec(java.lang.String host, int port, java.lang.String login, java.lang.String pswd)
public void connect() throws java.lang.Exception
java.lang.Exception
public java.lang.String command(java.lang.String command) throws java.lang.Exception
java.lang.Exception
public void disconnect()
public int getTimeout()
public void setTimeout(int timeout)