Connect to old ssh server

Hello everyone,

I have an SSH node that needs to connect to an old Linux Red Hat server. When I create the credential, I get the following error :

What is the error message (if any)?

SSH connection failed: Handshake failed: no matching key exchange algorithm

Which is normal because the server’s SSH layer is outdated. To work around this issue, on my PC I modify my user’s .ssh/config file by adding:

Host myhost
Hostname myhost
HostKeyAlgorithms +ssh-rsa

Is it possible to reproduce the same behavior in n8n?

For additional information, I do not have the ability to update this server.

Information on your n8n setup

  • n8n version: 2.9.1
  • Database: SQLite
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via: Docker
  • Operating system: Linux Debian

hello @flipflip

As far as I know, Node doesn’t support using the legacy key algorithms.

So the only option is to use a jump host.

1 Like

Hello @barn4k,

thank you for your reply. Since the SSH client includes many possible parameters, would it be possible to add an optional free-text field to pass connection parameters?

You can submit a feature request for that :slight_smile:

Latest Feature Requests topics - n8n Community