mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
fix bug
This commit is contained in:
@@ -102,7 +102,7 @@ public class SshjSftp extends AbstractFtp {
|
||||
this.ssh = new SSHClient();
|
||||
ssh.addHostKeyVerifier(new PromiscuousVerifier());
|
||||
try {
|
||||
ssh.connect(ftpConfig.getHost());
|
||||
ssh.connect(ftpConfig.getHost(), ftpConfig.getPort());
|
||||
ssh.authPassword(ftpConfig.getUser(), ftpConfig.getPassword());
|
||||
ssh.setRemoteCharset(ftpConfig.getCharset());
|
||||
this.sftp = ssh.newSFTPClient();
|
||||
|
Reference in New Issue
Block a user