ssh จาก Windows 10 หรือ Ubuntu เข้า CentOS 5 หรือ Linux เก่าๆไม่ได้ ทำยังไงดี
จาก ความเดิมตอนที่แล้ว ของคนที่แล้ว ( อย่าพึ่ง งง แต่ก็ งง ) มีคำถามเพิ่มมาอีกว่า "พอดีเจอปัญหา ssh เข้าเซิฟเวอร์ตัวเก่าไม่ได้" (CentOS 5.x) มันแจ้ง Error มาแบบนี้ Unable to negotiate with 192.168.1.1 port 22: no matching key exchange method found. Their offer: diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1 วิธีแรก ที่ง่ายที่สุดคือไปใช้ Putty วิธีที่สอง ใช้ Cygwin วิธีที่สาม ไม่อยากติดตั้งอะไรเพิ่ม เพราะใช้ PowerShell อยู่แล้วเลยลองไปถามลุงกู๋ แล้วได้คำตอบมาเป็นเรียงความตามนี้ จากโพสนี้ linux - SSH: "no matching key exchange method found" when KexAlgorithm is listed as available - Server Fault เค้าให้ตามไปอ่าน OpenSSH: Legacy Options สร้างไฟล์ config ใน ssh หน้าตาประมาณนี้ Host 192.168.1.1 KexAlgorithms +diffie-hellman-group1-sha1 จากนั้นลอง ssh ใหม่อีกรอบ ท่านก็จะได้ Error อีกตัวประมาณนี้ Unable to negotiate with 192.168.1.1 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss แฮร่~~~ อะ...