I have a fairly simple connection to an sftp server that uses nothing but username and password to get in. For some reason, it will only work in the “SSH Connection (legacy)” node and not with the newer SSH Connector. This is a big hassle since the file connection ports are not compatible with the file Transfer Files node.
Is there any way to see the output of ssh verbose logs to see if there is any indication of the problem? Any other troubleshooting I can do?
Hi,
I have no solution for that, but have you checked the output in the terminal when you try to connect?
Unfortunately it’s only available in the ClassicUI mode.
Andi
I am using the classical UI. By terminal, do you mean the console? It just gives a time out exception:
ERROR SSH Connector 3:1600 Execute failed: Timed out after 5000 msec (TimeoutException)
Note that I shortened the timeout to just 5 seconds to not have to wait, but it still timesout when I set it insanely high.
There’s also this more verbose log entry from the knime log, but I think it’s just saying the same thing, timeout:
2025-04-30 10:38:14,395 : ERROR : KNIME-Worker-5-SSH Connector 3:1600 : : Node : SSH Connector : 3:1600 : Execute failed: Timed out after 5000 msec (TimeoutException)
java.io.IOException: Timed out after 5000 msec (TimeoutException)
at org.knime.ext.ssh.filehandling.fs.SftpSessionFactory.toIOException(SftpSessionFactory.java:223)
at org.knime.ext.ssh.filehandling.fs.SftpSessionFactory.createSession(SftpSessionFactory.java:208)
at org.knime.ext.ssh.filehandling.fs.ConnectionResourcePool.start(ConnectionResourcePool.java:296)
at org.knime.ext.ssh.filehandling.fs.SshFileSystemProvider.<init>(SshFileSystemProvider.java:105)
at org.knime.ext.ssh.filehandling.fs.SshFileSystem.createProvider(SshFileSystem.java:93)
at org.knime.ext.ssh.filehandling.fs.SshFileSystem.<init>(SshFileSystem.java:86)
at org.knime.ext.ssh.filehandling.fs.SshFSConnection.<init>(SshFSConnection.java:70)
at org.knime.ext.ssh.filehandling.node.SshConnectorNodeModel.execute(SshConnectorNodeModel.java:133)
at org.knime.core.node.NodeModel.executeModel(NodeModel.java:596)
at org.knime.core.node.Node.invokeFullyNodeModelExecute(Node.java:1284)
at org.knime.core.node.Node.execute(Node.java:1049)
at org.knime.core.node.workflow.NativeNodeContainer.performExecuteNode(NativeNodeContainer.java:603)
at org.knime.core.node.exec.LocalNodeExecutionJob.mainExecute(LocalNodeExecutionJob.java:98)
at org.knime.core.node.workflow.NodeExecutionJob.internalRun(NodeExecutionJob.java:198)
at org.knime.core.node.workflow.NodeExecutionJob.run(NodeExecutionJob.java:117)
at org.knime.core.util.ThreadUtils$RunnableWithContextImpl.runWithContext(ThreadUtils.java:369)
at org.knime.core.util.ThreadUtils$RunnableWithContext.run(ThreadUtils.java:223)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.run(Unknown Source)
at org.knime.core.util.ThreadPool$MyFuture.run(ThreadPool.java:123)
at org.knime.core.util.ThreadPool$Worker.run(ThreadPool.java:246)
Caused by: org.apache.sshd.common.SshException: [ssh-connection]: Failed to get operation result within specified timeout: 5000 msec
at org.apache.sshd.common.future.AbstractSshFuture.lambda$verifyResult$1(AbstractSshFuture.java:114)
at org.apache.sshd.common.future.AbstractSshFuture.formatExceptionMessage(AbstractSshFuture.java:206)
at org.apache.sshd.common.future.AbstractSshFuture.verifyResult(AbstractSshFuture.java:114)
at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:56)
at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:35)
at org.apache.sshd.common.future.VerifiableFuture.verify(VerifiableFuture.java:110)
at org.apache.sshd.common.future.VerifiableFuture.verify(VerifiableFuture.java:96)
at org.knime.ext.ssh.filehandling.fs.SftpSessionFactory.createSession(SftpSessionFactory.java:203)
... 19 more
Caused by: java.util.concurrent.TimeoutException: Timed out after 5000 msec
at org.apache.sshd.common.future.AbstractSshFuture.verifyResult(AbstractSshFuture.java:113)
... 24 more
Yeah sure I meant the console … thanks.
Well unfortunately I don’t have a clue what’s going on there.