mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
add test and add methods
This commit is contained in:
@@ -127,6 +127,7 @@ public class JschUtil {
|
||||
* @param passphrase 私钥文件的密码,可以为null
|
||||
* @param timeOut 超时时间,单位毫秒
|
||||
* @return SSH会话
|
||||
* @since 5.8.4
|
||||
*/
|
||||
public static Session openSession(String sshHost, int sshPort, String sshUser, String privateKeyPath, byte[] passphrase, int timeOut) {
|
||||
final Session session = createSession(sshHost, sshPort, sshUser, privateKeyPath, passphrase);
|
||||
|
@@ -31,7 +31,7 @@ import java.util.Vector;
|
||||
*
|
||||
* <p>
|
||||
* 此类为基于jsch的SFTP实现<br>
|
||||
* 参考:https://www.cnblogs.com/longyg/archive/2012/06/25/2556576.html
|
||||
* 参考:<a href="https://www.cnblogs.com/longyg/archive/2012/06/25/2556576.html">https://www.cnblogs.com/longyg/archive/2012/06/25/2556576.html</a>
|
||||
* </p>
|
||||
*
|
||||
* @author looly
|
||||
|
Reference in New Issue
Block a user