FTP/SFTP/SSH Credential issue (getConnection: All configured authentication methods failed)

Describe the problem/error/question: When setting up the **FTP/SSH credentials, either with Username/Password or Private key (with no Passphrase) im getting “**getConnection: All configured authentication methods failed”

I’m successfully able to SFTP/SSH from the rhel 9.6 server (hosting docker n8n). asks me to entry password every time when adding private key on dest server via CLI

I’m successfully able to SFTP/SSH from the Docker containers via CLI

When using Executed command: i get the following because i dont have way to add my password

Command failed: sftp nsroot@x nsroot@x: Permission denied (publickey,keyboard-interactive). Connection closed

Firewall were check no blocks, Wireshark capture on destination server see full handshakes

destination server is application server running freebsd OS

I’m really stuck here guys.. i dont even know where i can check the logs for errors for n8n end. i changed my docker logs to debug in the yum file still dont see anything.. docker logs n8n etc

What im trying to do is: Upload file to Chat trigger > take that file uploaded to my server using the SFTP node.

What is the error message (if any)? getConnection: All configured authentication methods failed

Please share your workflow

Chat Trigger Node (File upload) > FTP Node (SFTP) 

Share the output returned by the last node

Couldn’t connect with these settings
getConnection: All configured authentication methods failed

Information on your n8n setup

  • n8n version: 1.111.1
  • Database (default: SQLite): default
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker
  • Operating system: rhel 9.6

I have the same issue. I wanted to automate two scenarios with an SFTP component but user/password auth is not working - error: “getConnection: All configured authentication methods failed”. I didn’t try Key based auth because i only got user/password from vendor. I tried connecting to the SFTP from the same machine where n8n runs the workflow using CLI ‘sftp’ tool and it was working fine.