I am using an SSH tunnel to establish an SSH connection to a device, I am creating the tunnel with:
ssh -L localhost:44445:X.X.X.X:XXXX [email protected]
However when I try to ssh through the tunnel with:
ssh root@localhost:44445
Unable to negotiate with 127.0.0.1 port 44445: no matching key exchange method found. Their offer: diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
However, if I move the same machine into the same network where my device is and I try to connect directly to the device - hence without using the SSH tunnel -connection is successful.
I can connect using the following option when running the SSH client through the tunnel, however I need to be able to connect without that.
-o KexAlgorithms=+diffie-hellman-group14-sha1
Funny enough I can connect using the ProxyJump option - that works fine however it is not what I want as I need to use a tunnel to be used by a 3rd party app.