Host can't ssh into guest because of conflicts in /root/.ssh/known_hosts

I changed port number for guest system and after that host system couldn't connect to guest through SSH. After trying lot's of other things I found out that host adds keys for each guest system into /root/.ssh/known_hosts file. Mine had two lines for the same guest ip address. After clearing those lines my host was able to ssh into the guest. Just reporting, so that Cloudmin developing team could evaluate if this issue could be taken care of in the next release.

Status: 
Closed (works as designed)

Comments

So was Cloudmin itself unable to connect via SSH? If so, what error message did you see when you select the VM from the left menu and then click on Edit System?

Since I already have resolved this issue I don't remember what was exact message, but I believe it was something about SSH being down. Restarting guest didn't help. Only clearing two conflicting entries in /root/.ssh/known_hosts solved the issue.

Sometimes if the host's SSH key changes, Cloudmin will be unable to SSH in due to the old entry in known_hosts. However, the "Edit System" page should display a button to clear this old entry.

We didn't want to make this happen automatically, as this feature of SSH is designed to detect the case where you aren't connecting to the correct machine..

I've commented on those forum posts.

As for this issue, I think it can be closed as Cloudmin already has a way of handling this situation, as described.