public class SSHSession extends Object
Constructor and Description |
---|
SSHSession(com.jcraft.jsch.Session session) |
SSHSession(URI endpoint) |
SSHSession(URI endpoint,
SSHInfo info) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Disconnects.
|
com.jcraft.jsch.Channel |
getExecChannel()
The main purpose of the SSH connection: to do an exec.
|
SSHInfo |
getInfo() |
void |
setInfo(SSHInfo info) |
public SSHSession(com.jcraft.jsch.Session session)
session
- existing jcraft Session objectpublic SSHSession(URI endpoint)
endpoint
- to which to open connection.public void close()
public com.jcraft.jsch.Channel getExecChannel() throws Exception
Exception
public SSHInfo getInfo()
public void setInfo(SSHInfo info)
Copyright © 2022. All rights reserved.