ssh remote host identification has changed

前端 未结 29 2097
故里飘歌
故里飘歌 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 04:01

    Sometimes, if for any reason, you need to reinstall a server, when connecting by ssh we will find that you server say that the identification has changed. If we know that it is not an attack, but that we have reinstated the system, we can remove the old identification from the known_hosts using ssh-keygen:

    ssh-keygen -R 
    root/.ssh/known_hosts updated.
    Original contents retained as /root/.ssh/known_hosts.old
    

    When connecting again we will ask you to validate the new fingerprint:

    ssh -l user 
    The authenticity of host '' can't 
    be established.
    RSA key fingerprint is 3f:3d:a0:bb:59:24:35:6d:e5:a0:1a:3f:9c:86:81:90.
    Are you sure you want to continue connecting (yes/no)? yes
    

提交回复
热议问题