Linux – Cannot SSH log into Debian virtual machine from windows 7 via Putty

debianlinuxputtysshwindows 7

I have followed a tutorial from this website http://jtreminio.com/2012/07/setting-up-a-debian-vm-step-by-step/. I am up to the point in the tutorial where it says to login via SSH. I have installed Putty and logging in under debian-vm as the host name and I have also used 192.168.56.101 as a IP address. I get a connection timed out error every time I try to login.

I have read other posts and suggestions pop up that it may be due to firewall issues or network related issues. Ultimately I am not well versed in networking so I really wouldn't know. Can someone suggest where to start to fix this issue or help me with any ideas they may have. I am using Oracle Virtual box with Debian 64 bit on Windows 7. I have OpenSSH installed on Debian, using NAT for adaptor 1 and Host only adaptor on 2. I have written to the files in Debian and I have written the IP address and host name into the hosts file on Windows 7 as instructed.

Best Answer

I'm having the exact same issue with that same tutorial, I made a question about it here:

Debian VM will not longer bring up the host-only interface

Since I only have 1 reputation, I can't comment any answers so I can't contribute to an answer.

So I'm just posting it here.

The answer to Jason H's question is that dhclient eth(#) produces this error:

RTNETLINK answers: File exists

Meaning the gateway route is already listed in the ip table.

And I don't understand why I get that error, since I never actually set a gateway to begin with.

Related Question