I have trouble connecting to IP 10.0.2.2 with ssh. Other IPs 10.0.3.2 and 10.0.4.2 work fine. Connecting to 10.0.2.2 with MobaXterm in Windows works and the problem is also visible when cable is not connected to any of these targets by this
ssh -vvv 10.0.2.2
almost instantly giving connection refused
OpenSSH_6.7p1 Debian-5+deb8u3, OpenSSL 1.0.1t 3 May 2016 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug2: ssh_connect: needpriv 0 debug1: Connecting to 10.0.2.2 [10.0.2.2] port 22. debug1: connect to address 10.0.2.2 port 22: Connection refused ssh: connect to host 10.0.2.2 port 22: Connection refused
Where connection to 10.0.3.2 for example does not give connection refused instantly, as expected.
I have tried reinstalling openssh-client and openssh-server, removing .ssh/. I do not have any iptables rules. Pinging 10.0.2.2 gives a response.
I am running Debian in VirtualBox on Windows 7 64-bit.