اگرم برنخورده باشین یه روزی بر میخورین :
root@asal:~# ssh root@192.168.1.9 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING: REMOTE HOST IDENTIFICATIONCHANGED! @ @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY! Someone could be eavesdropping on you right now (man-in-the-middle attack)! It is also possible that a host keyjust been changed. The fingerprint for the RSA key sent by the remote host is 6a:4d:e0:f5:1a:51:30:bf:5b:e9:26:fc:d0:67:8e:b1. Please contact your system administrator. Add correct host key in /root/.ssh/known_hosts to get rid of this message. Offending RSA key in /root/.ssh/known_hosts:3 remove with: ssh-keygen -f "/root/.ssh/known_hosts" -R 192.168.1.9 RSA host key for 192.168.1.9changed and you have requested strict checking. Host key verification failed. root@asal:~#
من به این مشکل برخوردم و حلش کردم
شما man in the middle شدید
در واقع مشکل از host key هستش یعنی certificate شما همخونی نداره، باید پاک شه و دوباره دانلود شه
برای این منظور باید فایل known_hosts رو پاک کنیم :
rm -f /root/.ssh/known_hosts
حالا وقتی دستور ssh رو اجرا کنید می بینید که یه سوال میپرسه که باید بهش جواب yes بدین. میگه certificate رو دانلود کنم؟ شما هم بهش ok میدین.
نموم، حالا به سرورتون کانکت میشین.
