A connected SSH connection.
| Constructor and description |
|---|
Connection
(Remote remote1, com.jcraft.jsch.Session session1)Constructor |
| Type Params | Return Type | Name and description |
|---|---|---|
|
void |
close()Cleanup the connection and all channels. |
|
com.jcraft.jsch.ChannelExec |
createExecutionChannel()Create an execution channel. |
|
com.jcraft.jsch.ChannelSftp |
createSftpChannel()Create a SFTP channel. |
|
com.jcraft.jsch.ChannelShell |
createShellChannel()Create a shell channel. |
|
int |
forwardLocalPort(LocalPortForwardSettings settings)Set up local port forwarding. |
|
void |
forwardRemotePort(RemotePortForwardSettings settings)Set up remote port forwarding. |
|
java.lang.String |
toString() |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#wait(long), java.lang.Object#wait(long, int), java.lang.Object#wait(), java.lang.Object#equals(java.lang.Object), java.lang.Object#toString(), java.lang.Object#hashCode(), java.lang.Object#getClass(), java.lang.Object#notify(), java.lang.Object#notifyAll() |
Constructor
session1 - connected sessionCleanup the connection and all channels.
Create an execution channel.
Create a SFTP channel.
Create a shell channel.
Set up local port forwarding.
Set up remote port forwarding.
Groovy Documentation