On a MacOSSierra I'm running VirtulBox with Ubuntu 16.4 Server (CLI) I'm trying to establish a SSH connection from Mac to the VM (they are both on the same machine)
Mac Terminal:
usermac-MacBook-Pro:~ usermac$ ssh user@x.x.x.x -v
OpenSSH_7.2p2, LibreSSL 2.4.1
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: Connecting to x.x.x.x [x.x.x.x] port 22.
debug1: connect to address x.x.x.x port 22: Operation timed out
ssh: connect to host x.x.x.x port 22: Operation timed out
On the VM terminal, the following is displayed:
connection from ubuntu server to the same ubuntu server
When I do the same, from ubuntu server (VM)to ubuntu server (vm) - locally and use:
ssh user@0.0.0.0
everything works fine. I can connect
The same thing doesn't work from outside the VM environment.
ping <vm_ipaddress>
from HOST ? – lese Nov 15 '16 at 15:44