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


Sep 1, 2023
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)?


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


Thanks. Do I need to bump the Corosync version? Do this on all the nodes or just one?
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!


The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!