use of com.jn.agileway.ssh.client.impl.sshj.sftp.SshjSftpSession in project agileway by fangjinuo.
the class SshjConnection method openSftpSession.
@Override
public SftpSession openSftpSession() throws SshException {
try {
SFTPClient client = sshClient.newSFTPClient();
SshjSftpSession session = new SshjSftpSession(client);
session.setSshConnection(this);
return session;
} catch (Throwable ex) {
throw new SshException(ex);
}
}
Aggregations