ssh remote host identification has changed

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

    Only client side problem(duplicate key for ip):

    Solve variants:

    For clear one ip(default port 22):

    ssh-keygen -f -R 7.7.7.7
    

    For one ip(non default port):

    ssh-keygen -f -R 7.7.7.7:333
    

    Fast clear all ips:

    cd ~; rm .ssh/known_hosts
    

    7.7.7.7 - ssh your server ip connect

    333 - non standart port

提交回复
热议问题