Submitted by yngens on Thu, 01/03/2013 - 19:57
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
Submitted by JamieCameron on Thu, 01/03/2013 - 20:14 Comment #1
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?
Submitted by yngens on Thu, 01/03/2013 - 20:17 Comment #2
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.
Submitted by JamieCameron on Thu, 01/03/2013 - 20:23 Comment #3
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..
Submitted by yngens on Thu, 01/03/2013 - 20:27 Comment #4
I see know. Thanks!
Jamie, sorry for using this thread to request you to give your feedback on https://www.virtualmin.com/node/24675 and https://www.virtualmin.com/node/24776. Probably https://www.virtualmin.com/node/24776 should be turned from forum page into an issue, since that is very serious bug, if it is a bug.
Submitted by JamieCameron on Thu, 01/03/2013 - 20:43 Comment #5
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.