Answer the question
In order to leave comments, you need to log in
How to create a new node certificate, ssh?
Good day! I created a clone of the virtual machine, when I connect to the clone via ssh, I get an error that the verification of the host certificate failed. I don't want to delete everything from know_host. How do I generate a new node certificate for a clone? What is it generally built from, changed the mac-address, hostname and ip.
Answer the question
In order to leave comments, you need to log in
I don't want to delete everything from know_host
rm /etc/ssh/ssh_host_* ; dpkg-reconfigure openssh-server ; systemctl restart ssh
You can also do it on a clone machine: ssh-keyscan
This command will give the fingerprint of the machine, and then remove this fingerprint from known_host on the host machine
>> I don't want to delete everything from know_host.
remove only the line that refers to his old key.
I don't want to delete everything from know_host.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question