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

后端 未结 11 1828
抹茶落季
抹茶落季 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:56

    When you try to connect your remote server with ssh:

    $ ssh username@ip_address
    

    then the error raise, to solve it:

    $ ssh-keygen -f "/home/local_username/.ssh/known_hosts" -R "ip_address"
    

提交回复
热议问题