use of com.jn.agileway.ssh.client.impl.jsch.sftp.JschSftpSession in project agileway by fangjinuo.
the class JschConnection method openSftpSession.
@Override
public SftpSession openSftpSession() throws SshException {
try {
ChannelSftp channel = (ChannelSftp) this.delegate.openChannel("sftp");
channel.connect();
JschSftpSession session = new JschSftpSession(channel);
session.setSshConnection(this);
return session;
} catch (JSchException ex) {
throw new SshException(ex);
}
}
Aggregations