SSH Node to Legacy Systems

Hello.

We want to use the SSH node to connect to old legacy Linux systems via SSH node.

To make this happen we have to use this guide below

We have to create a .ssh/config file add the below config

Host rhel5or6-host
KexAlgorithms +diffie-hellman-group14-sha1
MACs +hmac-sha1
HostKeyAlgorithms +ssh-rsa
PubkeyAcceptedKeyTypes +ssh-rsa
PubkeyAcceptedAlgorithms +ssh-rsa

Then create another config file /tmp/openssl.cnf and add

.include /etc/ssl/openssl.cnf
[openssl_init]
alg_section = evp_properties
[evp_properties]
rh-allow-sha1-signatures = yes

Finally you can connect like this

OPENSSL_CONF=/tmp/openssl.cnf ssh rhel5or6-host

Is there a way to define this steps somehow via .env variables when the docker container starts so that SSH node can connect to these legacy systems?

Now we are getting an error from the node

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

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hey @Mulen,

At the moment there is no option in the node to allow support for legacy key ciphers, The best option I can think of would be to create a jump box somewhere that can connect to them that you can lock down then use the SSH node to connect to that box first then move on to one of the older systems.

1 Like

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