public interface SshConnection
| Modifier and Type | Method and Description |
|---|---|
void |
disconnect()
Disconnects the connection.
|
String |
executeCommand(String command)
Execute an ssh command on the server.
|
com.jcraft.jsch.ChannelExec |
executeCommandChannel(String command)
Execute an ssh command on the server, without closing the session
so that the caller can get access to all the Channel attributes from
the server.
|
Reader |
executeCommandReader(String command)
Execute an ssh command on the server, without closing the session
so that a Reader can be returned with streaming data from the server.
|
boolean |
isAuthenticated()
Is the connection authenticated.
|
boolean |
isConnected()
Is the connection connected.
|
boolean |
isSessionOpen()
Returns if there already is an open session on this connection.
|
boolean isConnected()
boolean isAuthenticated()
boolean isSessionOpen()
String executeCommand(String command) throws SshException
command - the command to execute.SshException - if so.Reader executeCommandReader(String command) throws SshException, IOException
command - the command to execute.IOException - if it is so.SshException - if there are any ssh problems.com.jcraft.jsch.ChannelExec executeCommandChannel(String command) throws SshException, IOException
command - the command to execute.IOException - if it is so.SshException - if there are any ssh problems.executeCommandReader(String)void disconnect()
Copyright © 2004-2015 Hudson. All Rights Reserved.