public class CommonSshClient extends DefaultSshClient
SSH_BEY, SSH_BEY_KEY, SSH_PROFILELATEEST_EXEC_SHELL_DEBUG, TEMP_PATH| Constructor and Description |
|---|
CommonSshClient(java.lang.String ip,
int port,
java.lang.String username,
java.lang.String password) |
| Modifier and Type | Method and Description |
|---|---|
void |
executeCommand(java.io.OutputStream output,
java.lang.String command) |
com.trilead.ssh2.Connection |
getConnection() |
static CommonSshClient |
newInstance(java.lang.String ip,
int port,
java.lang.String username,
java.lang.String password) |
createSession, downloadFile, executeShell, executeSingleCommand, getIp, getPassword, getPort, getUsername, isNeedSource, setIp, setNeedSource, setPassword, setPort, setUsername, testConnection, toString, uploadFile, wrapperInputchmod, chown, downloadFile, executeCommand, executeShellByFTP, executeShellByFTP, mv, rm_Rf, uploadFile, uploadFilepublic CommonSshClient(java.lang.String ip,
int port,
java.lang.String username,
java.lang.String password)
public static CommonSshClient newInstance(java.lang.String ip, int port, java.lang.String username, java.lang.String password)
public com.trilead.ssh2.Connection getConnection()
throws java.io.IOException
java.io.IOExceptionpublic void executeCommand(java.io.OutputStream output,
java.lang.String command)
executeCommand in interface SshClientexecuteCommand in class DefaultSshClientCopyright © 2014. All Rights Reserved.