SSH connection fails, ECONNREFUSED error. Works fine from another client

Hey n8n community! Glad to post here! I do have a problem though.

Describe the issue/error/question

Have a key only authentication, key, passphrase and everything works fine from two other client machines, but does not with n8n. I have tried with new key pairs, still fails, while the other ones work. The other clients are just Linux machines/VMs connecting directly to the host in question with SSH.

What is the error message (if any)?

Error: connect ECONNREFUSED :
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)

Please share the workflow

Simply trying to connect through SSH to my host machine, filling in credentials, does not work. No error logs recorded on host when this happens, no logs at all. It just does not work.

Information on your n8n setup

  • n8n version: 0.188.0
  • Hosted with cloudron.

Hey @nmt,

Welcome to the community :tada:

That looks like the server is blocking the connection or there is no network route to the SSH host. It could also be a credential issue but I am assuming you have already enabled debug logging on the SSH server when you checked the logs.