👿Fix SSH Error: no matching key exchange method found

ในกรณีที่เราทำการ SSH ไปยัง Server แล้วเกิด Error ว่า no matching key exchange method found ทำให้ไม่สามารถเข้าถึง Server ได้ ซึ่งจะเกิดกับ Server ที่ใช้ระบบปฏิบัติการ OS รุ่นเก่าๆ

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

Configuration

  • ทำการระบุ Key Algorithm ที่ใช้

ssh -oKexAlgorithms=+diffie-hellman-group1-sha1 username#10.10.10.10

อ่านเพิ่มเติม : https://bit.ly/3Ywn8cn

Last updated

Was this helpful?