QuickSSH 1.0.2 版本发布, 支持是否活跃检测功能
QuickSSH 1.0.2版本发布,新增isClosed方法,用于检测当前会话是否关闭。此方法适用于连接池场景,需要将SSHClient作为资源存储,需要检测SSHClient是否可用。同时新增Channel类可获取所属的SSHClient方法. 更新功能使用实例 SSHClient sshClient =QuickSSH.newInstance() .host(account.host()) .port(account.port()) .username(account.username()) .password(account.password()) .build(); //判断连接是否关闭 sshClient.isClosed(); SFTPChannel sftpChannel = sshClient.sftpChannel(); //获得该频道所属的SSHClient SSHClient sshClient1 = sftpChannel.getSSHClient(); QuickSSH 纯Java实现SSH协议 快速入门 导入QuickSSH ...