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)
usermac-MacBook-Pro:~ usermac$ ssh firstname.lastname@example.org -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:
When I do the same, from ubuntu server (VM)to ubuntu server (vm) - locally and use:
everything works fine. I can connect
The same thing doesn't work from outside the VM environment.