Key problem with ssh to Linux

Hello, I am trying to connect to an old Redhat Linux and I can not for the next reason:

Code:
Unable to negotiate with 1.1.1.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
 
Hello, I am trying to connect to an old Redhat Linux and I can not for the next reason:

Unable to negotiate with 1.1.1.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1
happened to me with some cisco routers, just use
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 <server>
 
happened to me with some cisco routers, just use
ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 <server>

Doesn't support newer keys. And those old SHA1 keys have been disabled because they're insecure.
Hello, I tried but I get this:

Code:
Unable to negotiate with 1.1.1.1 port 22: no matching cipher found. Their offer: aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,arcfour,aes192-cbc,aes256-cbc,rijndael-cbc@lysator.liu.se
 
ssh -Q cipher would tell you what yours side supports, find matching one in "their offer" output and add it to your command in similar fashion like the key exchange one. The option is -oCiphers
 
Back
Top