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

Movies - Deadpool & Wolverine (2024)

 

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

 

Movie - The Gorge (2025)

  My views For 80 years everything was ok ... until they sent a woman For sure is DTV ... really bad Inside the gorge is clearly designed and written by a gamer Plot Two elite  snipers  receive identical missions: travel to an undisclosed location and guard the West and East sides of a deep gorge for one year without any contact with the outside world nor their counterpart on the opposite side. Levi Kane, a former  U.S. Marine  and current  private contractor  accepts the offer to guard the West tower. Drasa, a  Lithuanian  covert operative frequently employed by the  Kremlin , agrees to guard the East side. Upon arriving, Levi relieves his predecessor, J.D., a  British   Royal Marine  of duty and asks for specifics about the mission. J.D. explains that in addition to the towers on the East and West, there are automated turret defenses to the North and South, a powerful signal ‘ cloak ,’ and  explosives on the walls ...