John
09/06/2023, 3:41 PMbdw429s
09/06/2023, 3:43 PMbdw429s
09/06/2023, 3:43 PMJohn
09/06/2023, 3:44 PMbdw429s
09/06/2023, 3:45 PMbdw429s
09/06/2023, 3:45 PMJohn
09/06/2023, 3:45 PMJohn
09/06/2023, 3:47 PMlucee.runtime.exp.NativeException: com.jcraft.jsch.JSchException: Auth fail for methods 'publickey' at lucee.runtime.net.ftp.SFTPClientImpl.handleFail(SFTPClientImpl.java:394) at lucee.runtime.net.ftp.SFTPClientImpl.connect(SFTPClientImpl.java:117) at lucee.runtime.net.ftp.FTPWrap.connect(FTPWrap.java:118) at lucee.runtime.net.ftp.FTPWrap.<init>(FTPWrap.java:61) at lucee.runtime.net.ftp.FTPPoolImpl._get(FTPPoolImpl.java:83) at lucee.runtime.net.ftp.FTPPoolImpl.get(FTPPoolImpl.java:38) at lucee.runtime.tag.Ftp.getClient(Ftp.java:498) at lucee.runtime.tag.Ftp.actionOpen(Ftp.java:622) at lucee.runtime.tag.Ftp.doEndTag(Ftp.java:179) at tasks.aim.pull_files_cfm$cf$1z0.call(/tasks/AIM/pull_files.cfm:9) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:1056) at lucee.runtime.PageContextImpl._doInclude(PageContextImpl.java:948) at lucee.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:219) at lucee.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:44) at lucee.runtime.PageContextImpl.execute(PageContextImpl.java:2493) at lucee.runtime.PageContextImpl._execute(PageContextImpl.java:2478) at lucee.runtime.PageContextImpl.executeCFML(PageContextImpl.java:2449) at lucee.runtime.engine.Request.exe(Request.java:45) at lucee.runtime.engine.CFMLEngineImpl._service(CFMLEngineImpl.java:1216) at lucee.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:1162) at lucee.loader.engine.CFMLEngineWrapper.serviceCFML(CFMLEngineWrapper.java:102) at lucee.loader.servlet.CFMLServlet.service(CFMLServlet.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:729) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:106) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:528) at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:872) at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:672) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1520) at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1476) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61) at java.lang.Thread.run(Thread.java:745) Caused by: java.io.IOException: com.jcraft.jsch.JSchException: Auth fail for methods 'publickey' ... 43 more Caused by: com.jcraft.jsch.JSchException: Auth fail for methods 'publickey' at com.jcraft.jsch.Session.connect(Session.java:499) at com.jcraft.jsch.Session.connect(Session.java:187) at lucee.runtime.net.ftp.SFTPClientImpl.connect(SFTPClientImpl.java:101) ... 41 moreJohn
09/06/2023, 3:48 PMjamiejackson
09/06/2023, 3:54 PMbdw429s
09/06/2023, 3:56 PMbdw429s
09/06/2023, 3:56 PMJohn
09/06/2023, 3:56 PMJohn
09/06/2023, 3:56 PMbdw429s
09/06/2023, 3:56 PMAdam Cameron
Adam Cameron
Adam Cameron
LUCEE_JAVA_OPTS in our Dockerfile:
-Djsch.server_host_key=ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa,ssh-dss
You will want to set -Djsch.publickey instead though.Adam Cameron
jamiejackson
09/06/2023, 4:11 PMssh with verbose logging to see what it ends up connecting with, then emulate it with the java properties. that key type could go at the beginning of the list (since i think it tries each list member in order until success).Adam Cameron
com.jcraft.jsch.JSchAlgoNegoFailException:
Algorithm negotiation fail:
algorithmName="server_host_key"
jschProposal="ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256"
serverProposal="ssh-rsa"
So I derived that list of algos from the merge of those two. Plus another one from a different supplier's FTP server that also had the same issue.Adam Cameron
John
09/06/2023, 5:06 PMJohn
09/06/2023, 5:11 PMJohn
09/06/2023, 7:17 PMAdam Cameron
chapmandu
09/07/2023, 12:40 AMJohn
09/07/2023, 1:58 AM