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

前端 未结 6 1790
悲&欢浪女
悲&欢浪女 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:23

    Add following file

    ~/.ssh/config
    

    and this in the file as content

    StrictHostKeyChecking no
    

    This setting will make sure that ssh will never ask for fingerprint check again. This should be added very carefully as this would be really dangerous and allow to access all fingerprints.

提交回复
热议问题