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

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

    Step1:$Bhargava.ssh#

    ssh-keygen -R 199.95.30.220

    step2:$Bhargava.ssh #

    ssh-copy-id hostname@199.95.30.220

              Enter the the password.........
    

    step3: Bhargava .ssh #

    ssh hostname@199.95.30.220

    Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.13.0-68-generic x86_64) * Documentation: https://help.ubuntu.com/ Ubuntu 14.04.3 LTS server : 228839 ip : 199.95.30.220 hostname : qt.example.com System information as of Thu Mar 24 02:13:43 EDT 2016 System load: 0.67 Processes: 321 Usage of /home: 5.1% of 497.80GB Users logged in: 0 Memory usage: 53% IP address for eth0: 199.95.30.220 Swap usage: 16% IP address for docker0: 172.17.0.1 Graph this data and manage this system at: https://landscape.canonical.com/ Last login: Wed Mar 23 02:07:29 2016 from 103.200.41.50
    

    hostname@qt:~$

提交回复
热议问题