jms key 수정
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user