How can I force ssh to accept a new host fingerprint from the command line?

前端 未结 6 1787
悲&欢浪女
悲&欢浪女 2020-11-30 03:40

I\'m getting the standard

WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropp         


        
6条回答
  •  [愿得一人]
    2020-11-30 04:26

    You just have to update the current fingerprint that's being sent from server. Just Type in the following and you'll be good to go :)

    ssh-keygen -f "/home/your_user_name/.ssh/known_hosts" -R "server_ip"
    

提交回复
热议问题