How to establish an SSH connection to a virtual server (CentOS) installed on VirtualBox.

After seeing how to install on () A try to see how we can connect with (via putty) Virtual system.

How can we connect via SSH to CentsOS 5.6 / 6 (VIRTUAL SERVER) installed on VirtualBox.

1. First of all you have to do settings networking on VirtualBox. Before starting system CentOS, select it and click on the button "Settings”From VirtualBox. Going to "Network"And in the tab"1 Adapter"Select"bridged Adapter".

bridged Adapter

2. Start the operating system and open it terminalthe I give the order"setup"Let's go to Network Configuration.

Network Configuration

In "Network Configuration"We open"Edit Devices".

Edit Devices

Normally, in the list of devices only eth0 should appear. 

etho - DHCP

Using a connection to RDS (pppoe) Through a router, eth0 it is best to let the connection through DHCP.

Use DHPC

3. In "Network Configuration”>“Edit Devices"Select"New Device".

New Device

Ethernet & Add

Ethernet

4. The new device set the following:

eth0 Settings

"static IP”Will be the IP that we will connect via SSH to virtual server. "Default IP gateway"Will be the IP of the router (in our case. It may differ. ipconfog / all in to see which is your ip)

OK> Save> Save & Quit> Quit.

5. go to / Etc / sysconfig / network-scripts / and edit the new file: ifcfg-eth0: 0

Order in terminal:

nano /etc/sysconfig/network-scripts/ifcfg-eth0:0

In eth0: 0 'll find lines 4 your settings to point to which we add the line:

ONPARENT=yes
ifcfg

Ctrl+ X> Y & Enter to save the changes.

6. Restart the network.

service network restart

or

/etc/init.d/network restart
restart network centos

After you receive confirmation that all device networking sites work ok, go on our operating system (, or ) And open PuTTY. The Host Name (or IP address) pass the static IP set to point 4 and open the session.

puTTY VirtualBox CentOS

We can now manage virtual server from any computer on the . You can use the , ftp serverEtc. ...

Pornid services (service httpd start) We can also access the web interface, type http://192.168.2.9 in the address bar of your browser.

Connect to VirtualBox CentOS via SSH - Settings & Configuration.

The tutorial was made on Windows 7 Ultimate (base system), VirtualBox, CentOS 5.6 - Server & Hosting & Desktop Gnome (installed on VirtualBox), wireless LAN connection, SMC router, connection RDS PPPoE.

Founder and editor Stealth Settings, from 2006 to the present. Experience on operating systems Linux (in particular CentOS), Mac OS X, Windows XP> Windows 10 si WordPress (CMS).

How to » Linux » How to establish an SSH connection to a virtual server (CentOS) installed on VirtualBox.
Leave a Comment