SSH connection failed: All configured authentication methods failed

Describe the problem/error/question

SSH connection failed: All configured authentication methods failed

Added my ipv4 address to host, port 22, username, private key (copied from sudo cat /home/n8n_user/.ssh/id_rsa) and added passphrase.

i am using droplet digital ocean, ubuntu. have firewall, ipv6, and vpc configured too

I have also added the respective public key to digital ocean dashboard as ssh key.

What is going wrong and how can I troubleshoot it?

What is the error message (if any)?

Information on your n8n setup

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

Hey @pooria,

You have no host or username set so I would start there unless you removed that. If you did remove that it will likely be down to your ssh configuration or the permission on the authorized_keys file for the user on your host.

1 Like

@Jon lol I had added username and host just removed them from the screenshot.

And it was an ssh config error.

I restarted my ssh and it worked!!

2 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.