known_hosts entries - clear upon deletion & clear host key button not working

Hey Jamie,

When you delete a host from cloudmin it should remove the corresponding entry in .ssh/known_hosts so that when you create another host and reuse the IP it will successfully finish the creation, otherwise it will fail to install webmin since it cannot SSH into the host.

Also, trying to clear the key manually with Clear host key button from the edit system page does nothing when you click it.

Status: 
Active

Comments

Actually, this should already happen .. and does on my test system.

What is the full path to the .ssh/known_hosts file on your system?

The path to my .ssh/known_hosts is:

/root/.ssh/known_hosts

So if you create a Xen instance and then immediately delete it, does the known_hosts entry get left behind?

If so, is it the entry for the IP or the hostname?