[SOLVED] Proxmox Cluster - How to clean-up ssh_known_hosts?

Dulcow

Member
Sep 1, 2023
38
0
6
Hi there,

I have noticed that there is a bit of a mess in the "/etc/ssh/ssh_known_hosts" because I recently had some issues with a cluster that I dismantled completely. I had to remove configurations by hand and change some IP addresses. As a result, there is a long list things in there...

The file seems shared across the nodes via Corosync, how could I clean it up (to keep only records in 192.168.10.X)?

1695637823132.png

It might come up as a silly question but before making an even bigger mess, I would rather ask ;-)

Thanks,

D.
 
Do I need to bump the Corosync version? Do this on all the nodes or just one?
No, the file is local, therefore no corosync change required and because it's local, you need to do this on every node. Also check /root/.ssh/known_hosts, maybe also entries there.

In the end, you will only run into problems if you have conflicting entries in any of the known_hosts files. I seldomly clean my up and have thousands of entries there.
 
Right... It looks like I'm going to live with this then and do not touch it at all ;) Thanks!