'no ssh' status for VM with two networks

Hello all,

Since about 3 weeks I have one cloudmin kvm with “no ssh” status. This had been working
for years, and IMHO nothing changed apart from rebooting the cloudmin host (no other network changes).

The vm has two network interfaces, one internal and one external.

Detailed state is:
ssh: connect to host (external IP here) port 22: Connection refused
which is true - ssh port is open on internal IP only.

If I connect manually using cloudmin key, e.g. ssh -i /etc/webmin/server-manager/keys/12345.key my-vm.intern.domain.tld it is working flawlessly.

Cause of the above state, this vm cannot be managed, no updates etc. (doing this manually per ssh now).

How can I fix this? Why did this work for years, but - maybe after some webmin update? - cloudmin tries to connect to the wrong network interface now?

Thanx in advance and greetings
Falko

Hi Falko, it could be an endless list of things. An update that needed a reboot to take effect, a change in firewall rules that were implemented for the running instance but never saved. A port forward not working after restart … etc.

Hi jonas-2,

thanx for your answer, it is solved now. May be you are right - but I’m pretty sure, nothing had been
changed but the usual package/webmin/cloudmin upgrades.

So the question was: how can I tell cloudmin, which IP to use for management of this VM?

Sorted the servers/nnn.serv configuration files of 3 VMs, compared them using vimdiff
and found the following differences (11.22.33.x - external ip):

config-sysA.txt:ip=11.22.33.228
config-sysA.txt:kvm_ip=11.22.33.228

config-sysB.txt:ip=10.0.0.223
config-sysB.txt:kvm_ip=10.0.0.223 11.22.33.226
config-sysB.txt:kvm_ip6=

config-sysC.txt:ip=11.22.33.225
config-sysC.txt:kvm_ip=10.0.0.221
config-sysC.txt:kvm_ip6=fe80::54:ff:fe04:12f0

… only sysC showing the wrong ip= entry. In ‘Edit System’ -> 'System details" of sysC I’ve found: Automatic (11.22.33.225).

After changing it to: Use address 10.0.0.221

the config of sysC showed these differences:

-ip=11.22.33.225
+ip=10.0.0.221
 ip6_addresses=fe80::54:ff:fe04:12f0
 ip_addresses=11.22.33.225
+ip_force=10.0.0.221

Status changed to “webmin” immediately after saving - so all went well.