I try to add a new SFTP credential. In FileZilla I can successfully connect to the SFTP-servers with the credentials that I use. However, when entering the credentials in n8n and click “Save”, the button changes to “Testing” and stays stuck like that. In the console I can see multiple error trying to connect, but unfortunately I cannot make sense of them.
Is this a bug in n8n or does the SFTP-server block the connection (no IP-whitelisting is needed, so it must be something else then)? Any way to find out how to solve this error?
Any help is appreciated.
What is the error message (if any)?
I see the follow error messages in the console:
POST https://tixly.app.n8n.cloud/rest/credentials/test 500 (Internal Server Error)
[Vue warn]: Error in https://vuejs.org/error-reference/#runtime-5: "ResponseError: end: No SFTP connection available" (found in <SaveButton>)
POST https://o1420875.ingest.us.sentry.io/api/4503960699273216/envelope/?sentry_key=c458d7c5a07ff107dc42f25f6ce4bcdb&sentry_version=7&sentry_client=sentry.javascript.vue%2F8.33.1 403 (Forbidden)
POST https://o1420875.ingest.us.sentry.io/api/4503960699273216/envelope/?sentry_key=c458d7c5a07ff107dc42f25f6ce4bcdb&sentry_version=7&sentry_client=sentry.javascript.vue%2F8.33.1 403 (Forbidden)
The error you’re seeing (end: No SFTP connection available) combined with the “Testing” button getting stuck usually means that n8n couldn’t establish the SFTP connection, even before trying credentials.
Try to do these points:
Double-check the host/port/auth method
Try outside of n8n (CLI or FileZilla) to confirm the SFTP server is reachable
If it works elsewhere but not in n8n.cloud, the server may block traffic from cloud environments
Thank you @Gallo_AIA ,
I can successfully connect through the same port and with the same credentials through FileZilla. So then it must be the SFTP server blocking the request.
Any idea what to tell the provider of the SFTP-server that they need to change to allow the connection from n8n cloud?
ask to SFTP Provider to check firewall or fail2ban rules and allow traffic from the IP ranges used by n8n Cloud. Unfortunately idk if you can reach the IP of n8n cloud.
I am having the same problem. I went back and forth with the n8n AI Assistant verifying everything (credentials, whitelisting, ciphers etc.) until it ran out of ideas.
The SFTP server is a basic setup that we can connect to from any where else with no issues.
Has anyone been able to connect to a SFTP server from n8n successfully?
Unfortunately, I still have not been able to solve this issue in n8n. The provider of the SFTP server confirms that there are no firewall rules and the IP addresses are not blocked. I can reach the SFTP server from my local computer or from other platforms, but not n8n. There are also no clear error messages in n8n so it is completely unclear what the issue is.
My current workaround is putting a file on another SFTP server that I can reach from n8n (Hetzner storagebox). And then I use Make.com to transfer the file from that SFTP server to the final SFTP server. Make.com has no issues with reaching both SFTP servers.