ssh remote host identification has changed

前端 未结 29 2108
故里飘歌
故里飘歌 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

    SOLUTION:

    1- delete from "$HOME/.ssh/known_hosts" the line referring to the host towards which is impossible to connect.

    2- execute this command: ssh-keygen -R "IP_ADDRESSorHOSTNAME" (substitute "IP_ADDRESSorHOSTNAME" with your destination ip or destination hostname)

    3- Retry ssh connection (if it fails please check permission on .ssh directory, it has to be 700)

提交回复
热议问题