I'm practicing to use the ssh
command with two computer on a local network. From the 192.168.102.77
machine to 10.0.2.15
machine, SSH worked well. However, the inverse is not true, i.e., from the 10.0.2.15
machine to 192.168.102.77
machine, SSH didn't work well. Honestly, I don't know how to fix this problem. Could anyone be able to tell me how to enable this access with the ssh
command?
P.S. 10.0.2.15
is a VM on a MBP and 192.168.102.77
is ip address of another MBP with Ubuntu OS.
[jeremie@my_account] ~ ❯ ssh -vvv 10.0.2.15
OpenSSH_7.3p1 Ubuntu-1, OpenSSL 1.0.2g 1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: resolving "10.0.2.15" port 22
debug2: ssh_connect_direct: needpriv 0
debug1: Connecting to 10.0.2.15 [10.0.2.15] port 22.
debug1: connect to address 10.0.2.15 port 22:
Connection timed out ssh: connect to host 10.0.2.15 port 22:
Connection timed out
For the sudo lsof -inP
, I got the following picture :
Interesting question : Do I have modify the network
from VirtualBox of my VM of a certain way?
10.0.2.15
is a virtual machine on a macbook pro. I usedhostname -I
command and I got those IPs. Therefore, I simply appliedssh
on those IPs for the respective machinesudo lsof -i -n -P
. Also, you said "From the 192.168.102.77 machine to 10.0.2.15 machine, SSH worked well", but the output shows it backwards. Which is it?ssh 192.168.102.77
in the virtual machine, it worked well, but not the inverse. BTW, I modified the question.