jms key 수정

This commit is contained in:
zoomk
2025-11-17 13:49:42 +09:00
parent e8f0cce9ef
commit 6b5bf02358
2 changed files with 8 additions and 6 deletions
@@ -1237,10 +1237,12 @@ public class SFTPAdaptor {
if (StringUtils.equals(authType, Transfer.AUTH_TYPE_ID)) {
session = jsch.getSession(username, serverList[inx], port);
session.setPassword(password);
session.setConfig("PreferredAuthentications","password");
// key 방식 인증
} else if (StringUtils.equals(authType, Transfer.AUTH_TYPE_KEY)) {
jsch.addIdentity(password);
session = jsch.getSession(username, serverList[inx], port);
session.setConfig("PreferredAuthentications", "publickey");
}
if(proxyServer != null && !proxyServer.isEmpty()) {// 20251112
@@ -1257,7 +1259,7 @@ public class SFTPAdaptor {
}
session.setConfig("StrictHostKeyChecking", "no");
session.setConfig("PreferredAuthentications","password");
session.setTimeout(300 * 1000);
session.connect();
break;