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

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

    If you're sure the server is correct, sed -i 1d ~/.ssh/known_hosts will delete line 1 of your local ~/.ssh/known_hosts. The new correct key will be added to the file the next time you connect.

提交回复
热议问题