Trying to setup debian vm and ssh into it
Posted: 8. Feb 2014, 20:08
Hi All,
I was interested in learning more about linux commands and started following the "learn linux the hard way" (can't post urls yet).
It was written with a pc in mind, but I've gotten virtualbox setup, along with putty installed on my mac (running 10.9.1). I can't get past the steps to SSH into the virtual machine when I connect with localhost.
I've tried just using the NAT with port forwarding. I've also tried using 2 adapters. The first is the NAT, and I've made sure port forwarding is turned on for tcp from host port 22 to guest port 22. The 2nd I've tried using as Host-only Adapter, with the default vboxnet0 that gets created under the general virtualbox preferences.
When I launch the vm, and use "ls /sys/class/net" I see eth0 eth1 lo, all listed. If i try and edit /etc/network/interfaces I have the following:
I've tried adding the following line to see if it helps:
If i use /sbin/ifconfig I only get an ip for eth0 and lo. eth1 doesn't have an inet address.
When I try to use putty and connect to localhost it says wrong username/password because I don't think the forward is working.
Any help would be appreciated!
~T
I was interested in learning more about linux commands and started following the "learn linux the hard way" (can't post urls yet).
It was written with a pc in mind, but I've gotten virtualbox setup, along with putty installed on my mac (running 10.9.1). I can't get past the steps to SSH into the virtual machine when I connect with localhost.
I've tried just using the NAT with port forwarding. I've also tried using 2 adapters. The first is the NAT, and I've made sure port forwarding is turned on for tcp from host port 22 to guest port 22. The 2nd I've tried using as Host-only Adapter, with the default vboxnet0 that gets created under the general virtualbox preferences.
When I launch the vm, and use "ls /sys/class/net" I see eth0 eth1 lo, all listed. If i try and edit /etc/network/interfaces I have the following:
Code: Select all
# The loopback network interface
auto lo
iface lo inet loopback
#The primary network interface
allow-hotplug eth0
iface eth0 inet dhcpCode: Select all
allow-hotplug eth1
iface eth1 inet dhcpWhen I try to use putty and connect to localhost it says wrong username/password because I don't think the forward is working.
Any help would be appreciated!
~T