public class SSHSession extends AbstractTerminalSession
endString, finder, inputStream, outPutStream, regexp, socketTimeTimeout
host, port, sourceHost, sourcePort, timeout
Constructor and Description |
---|
SSHSession(java.lang.String host,
int port,
java.lang.String login,
java.lang.String pswd) |
Modifier and Type | Method and Description |
---|---|
void |
disconnect()
Закрывает соединение с удаленным хостом
|
java.lang.String |
getPrivateKeyFile()
Авторизация по ключу, путь к файлу id_rsa без ".pub"
|
protected void |
initConnection() |
void |
setPrivateKeyFile(java.lang.String privateKeyFile)
Авторизация по ключу, путь к файлу id_rsa без ".pub"
|
connect, doCommand, doCommandAsync, doCommandWithoutEndSymbol, getEndString, getRegexp, getRegexpBufferSize, getSocketTimeTimeout, setEndString, setReadWait, setRegexp, setRegexp, setRegexpBufferSize, setSocketTimeTimeout
getTimeout, setTimeout
public SSHSession(java.lang.String host, int port, java.lang.String login, java.lang.String pswd)
protected void initConnection() throws java.lang.Exception
initConnection
in class AbstractTerminalSession
java.lang.Exception
public void disconnect() throws ru.bitel.bgbilling.common.BGException
AbstractTerminalSession
disconnect
in class AbstractTerminalSession
ru.bitel.bgbilling.common.BGException
public java.lang.String getPrivateKeyFile()
public void setPrivateKeyFile(java.lang.String privateKeyFile)
privateKeyFile
-