Key problem with ssh to Linux

bangmyhead

Member

Reaction score: 1
Messages: 75

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
 

wolffnx

Aspiring Daemon

Reaction score: 212
Messages: 648

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>
 
OP
B

bangmyhead

Member

Reaction score: 1
Messages: 75

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
 

ondra_knezour

Aspiring Daemon

Reaction score: 221
Messages: 794

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
 
Top