ssh remote host identification has changed

前端 未结 29 2106
故里飘歌
故里飘歌 2020-12-02 03:02

I\'ve reinstalled my server and I am getting these messages:

[user@hostname ~]$ ssh root@pong
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@           


        
29条回答
  •  孤城傲影
    2020-12-02 03:48

    In my case it happened because I previously had ssh connection with a machine with same ip(say 192.152.51.10) and the system was considering the RSA key(stored in /home/user_name/.ssh/known_hosts) of the previous host which resulted in mismatch.

    To resolve this issue, you have to remove previously stored RSA key for the ip 192.152.51.10.

    ssh-keygen -f "/home/user_name/.ssh/known_hosts" -R 192.152.51.10
    

提交回复
热议问题