ssh remote host identification has changed

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

    When you reinstall the server its identity changes, and you'll start to get this message. Ssh has no way of knowing whether you've changed the server it connects to, or a server-in-the-middle has been added to your network to sniff on all your communications - so it brings this to your attention.

    Simply remove the key from known_hosts by deleting the relevant entry:

    sed '4d' -i /var/lib/sss/pubconf/known_hosts
    

    The 4d is on the account of Offending RSA ...known_hosts:4

提交回复
热议问题