Credentials for sftp do not work when remote server is set to “PAM Authentication”. It works w/ standard sftp (ssh) authentication.
What is the error message (if any)?
ERROR: connect->getConnection: All configured authentication methods failed
Error: connect->getConnection: All configured authentication methods failed
at fmtError (/usr/lib/node_modules/n8n/node_modules/ssh2-sftp-client/src/utils.js:55:18)
at SftpClient.connect (/usr/lib/node_modules/n8n/node_modules/ssh2-sftp-client/src/index.js:218:13)
at Object.execute (/usr/lib/node_modules/n8n/node_modules/n8n-nodes-base/nodes/Ftp/Ftp.node.ts:505:5)
at Workflow.runNode (/usr/lib/node_modules/n8n/node_modules/n8n-workflow/src/Workflow.ts:1261:19)
at /usr/lib/node_modules/n8n/node_modules/n8n-core/src/WorkflowExecute.ts:949:29
Is there anything special with your PAM configuration like maybe MFA? Our nodes are not designed to be “interactive” so if any additional prompts are required it will cause some issues.
It could also be worth trying the SSH node to see if that lets you in, It has support for uploading and getting files so could be a good alternative.
When you run it from the terminal do you get any extra prompts or anything? I can’t think of a reason for it to fail but sometimes SSH can get a bit funky.
Any chance you could connect from a terminal using sftp -vv and sending me a DM with the output (with anything sensitive removed) so I can take a look?