Centos – Can’t seem to SSH into the CentOS Virtualbox

centossshvirtualbox

I can't seem to SSH into my CentOS VirtualBox 4.0 running on Windows 7 64-bit. SSHD is running.
I've forwarded port 2222 on localhost to the virtual machine (port 22).

enter image description here

The network adapter is NAT because for some reason bridged refuses to start the virtual machine.

Any ideas?

Best Answer

In your screenshot, the host and the guest have the same IP. That doesn't seem right. If you've set your VM to use NAT, it will receive its own IP address. Port forwarding shouldn't be needed (unless you want to be able to connect to a service inside your VM through your hosts networking interface).

To determine your local IP address, run the following command inside a shell on your VM:

ip a
Related Question