ssh remote host identification has changed

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

    Works for me!

    Error: Offending RSA key in /var/lib/sss/pubconf/known_hosts:4

    This indicates you have an offending RSA key at line no. 4

    Solution 1:

    1. vi /var/lib/sss/pubconf/known_hosts

    2. remove line no: 4.

    3. Save and Exit, and Retry.

    Solution 2:

    ssh-keygen -R "you server hostname or ip"

    OR

    Solution 3:

    sed -i '4d' /root/.ssh/known_hosts

    This will remove 4th line of /root/.ssh/known_hosts in place(-i).

提交回复
热议问题