Tuesday, February 19, 2013

การแก้ปัญหา @warning : Remote host identification has changed!@


เมื่อมีการเปลี่ยน host แล้วเครื่องที่เป็น client จะ remote แบบ SSH (Secure Shell) ไปที่เครื่อง server แล้วปรากฎว่าเป็น error ดังนี้

"@warning : Remote host identification has changed!@"

ปัญหาเกิดจาก key ไม่ตรงกันของเครื่อง server และเครื่องที่จะ remote เข้าไปใช้

วิธีแก้ไขให้ลบ file know_hosts ที่อยู่ใน Home directory ของ user ที่ Log on อยู่ เช่น root@me:~# rm ~/.ssh/know_hosts

เมื่อ ssh เข้าไปยังเครื่อง server อีกครั้งจะแสดงรายละเอียดดังนี้

root@me:~/.ssh# ssh root@192.168.2.88
The authenticity of host '192.168.2.5 (192.168.2.88)' can't be established.
RSA key fingerprint is 90:97:f2:42:34:09:ec:09:49:07:7e:59:65:a8:95:75.
Are you sure you want to continue connecting (yes/no)?

No comments:

Post a Comment