How to establish ssh key pair when “Host key verification failed”

后端 未结 11 1821
抹茶落季
抹茶落季 2021-01-30 10:17

I have set up ssh key pairs between my desktop and two servers, and from the servers to my desktop, but after reinstalling the OS on my desktop, I can\'t re-establish the key-pa

11条回答
  •  一生所求
    2021-01-30 10:54

    ssh-keygen -R hostname
    

    This deletes the offending key from the known_hosts

    The man page entry reads:

    -R hostname Removes all keys belonging to hostname from a known_hosts file. This option is useful to delete hashed hosts (see the -H option above).

提交回复
热议问题