Wednesday, 8 February 2012

SSH access to archlinux guest in virtualbox

For me having metasploit framework installed on headless and light operating system whose memory thirst can be quench with 50-80 MB RAM was a point to install arch linux.

This post shows quick dirty steps to configure virtualbox to access SSH on arch linux guest with NAT.

Environment:

Host : Windows
Guest: Arch linux 64bit
VirtualBox: 4.1.8

Poweroff your guest operating system. Go to settings of your guest and select Network. Setup Adapter1 as NAT and Adapter2 as Host-Only Adapter. Refer following screenshots



Ipconfig on my windows host shows the following configuration


PowerOn your guest. Login as root user and setup another interface with the following command

ifconfig eth1 inet 192.168.7.2 netmask 255.255.255.0 up

From your host system, you now will be able to ping 192.168.7.2 and can even ssh 192.168.7.2 with your ssh client like PuTTY.

No comments:

Post a Comment