|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SshConnection
A simple ssh client connection with private key.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||