Skip to main content

IT - SSH accessing legacy servers

Possible solutions for problems when connecting to legacy SSH hosts

no matching key exchange method found

When getting this error message when accessing a SSH server

$ ssh  192.168.0.78
Unable to negotiate with 192.168.0.78 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group1-sha1

you should add the offered key exchanges to the command line

$ ssh \
-oKexAlgorithms=+diffie-hellman-group-exchange-sha1 \
-oKexAlgorithms=+diffie-hellman-group1-sha1 \
192.168.0.78

no matching cipher found.

When getting this error message, when accessing a SSH server

$ ssh \
-oKexAlgorithms=+diffie-hellman-group-exchange-sha1 \
-oKexAlgorithms=+diffie-hellman-group1-sha1 \
192.168.0.78
Unable to negotiate with 192.168.0.78 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

you should add the offered ciphers. Some ciphers will not work. You need to add all of them and remove the ones that doesn't work.

$ ssh \
-oKexAlgorithms=+diffie-hellman-group-exchange-sha1 \
-oKexAlgorithms=+diffie-hellman-group1-sha1 \
-oCiphers=+aes128-cbc \
-oCiphers=+3des-cbc \
-oCiphers=+aes192-cbc \
-oCiphers=+aes256-cbc \
192.168.0.78

Comments

Popular posts from this blog

IT - My Home Platform View - All Infrastructure

Some ideas Deploy a harverster cluster Deploy a rancher server

Movie - The Gray Man (2022)

  My views Plot In 2003, senior  CIA  official Donald Fitzroy visits a prisoner named Courtland Gentry in Florida. Eight years earlier, Courtland was a minor convicted of killing his abusive father to protect his brother. Fitzroy offers him his freedom in exchange for working as an assassin in the CIA's  Sierra  program, an elite black ops unit, which will allow him to exist in the gray. In 2021, Courtland, now known as  Sierra Six , is working with fellow CIA agent Dani Miranda to assassinate a target named Dining Car suspected of selling off  national security  secrets in  Bangkok  during the national  Songkran  festival. Unable to do so stealthily without harming civilians, he attacks Dining Car directly, mortally wounding him. Before dying, he reveals he was also in the Sierra program as Sierra Four. He hands Six an encrypted drive detailing the corruption of CIA official Denny Carmichael, the lead agent on the assassinatio...

TV Mini-serie - Lady in the Lake (2024)