I try to get an ssh-connection between two virtual machines. Therefore I have installed two vm's with Ubuntu-Gnome-16.04 guests on a Ubuntu-Gnome-14.04 host using Oracle VirtualBox 4.3.36.
I setup both vm's to the same internal network on adapter 1. Additionally I set the IPv4 addresses on each guest to static addresses:
Address: 192.168.44.10 on quest a and 192.168.44.11 on quest b
network mask: 255.255.255.0
gateway: 192.168.44.44
DNS-Server: 192.168.44.22
Then I can ping between the vm's:
usr@vb-a:~$ ping 192.168.44.11 -c4
PING 192.168.44.11 (192.168.44.11) 56(84) bytes of data.
64 bytes from 192.168.44.11: icmp_seq=1 ttl=64 time=0.155 ms
64 bytes from 192.168.44.11: icmp_seq=2 ttl=64 time=0.316 ms
64 bytes from 192.168.44.11: icmp_seq=3 ttl=64 time=0.308 ms
64 bytes from 192.168.44.11: icmp_seq=4 ttl=64 time=0.319 ms
--- 192.168.44.11 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.155/0.274/0.319/0.071 ms
and the other vm:
usr@vb-b:~$ ping 192.168.44.10 -c4
PING 192.168.44.10 (192.168.44.10) 56(84) bytes of data.
64 bytes from 192.168.44.10: icmp_seq=1 ttl=64 time=0.429 ms
64 bytes from 192.168.44.10: icmp_seq=2 ttl=64 time=0.308 ms
64 bytes from 192.168.44.10: icmp_seq=3 ttl=64 time=0.297 ms
64 bytes from 192.168.44.10: icmp_seq=4 ttl=64 time=0.243 ms
--- 192.168.44.10 ping statistics ---
4 packets transmitted, 4 received, 0% packet loss, time 3000ms
rtt min/avg/max/mdev = 0.243/0.319/0.429/0.069 ms
But the I try to open a ssh-connection I get this message:
usr@vb-a:~$ ssh [email protected]
ssh: connect to host 192.168.44.11 port 22: Connection refused
I started troubleshooting and check the ufw status on host and guest is inaktiv because maybe a firewall blocks this port. But ufw isn't active.
Where could be the fault?
Thanks in advance.
Alex
firewall configuration
at one guest. Under Services > ssh > ports port 22 tcp and udp are listed. Can you specify what I have to looking for?