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

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

How can we connect via SSH to 5.6 cents / 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 make click on the button "Settings"In VirtualBox. Going to"Network"And in the tab"1 Adapter"Select"bridged Adapter".

bridged Adapter

2. Start the operating system and open the terminal. Dam command "setup"'ll Go to Network Configuration.

Network Configuration

In "Network Configuration"Open"Edit Devices".

Edit Devices

Normally the list of devices should appear only eth0.

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"IP is that we connect via SSH to virtual server. "Default Gateway IP"Will be IP 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

Command in Terminal:

dwarf / 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 network.

/ Etc / init.d / network restart

or

service network restart

CentOS network restart

After you receive confirmation that all device networking sites work ok, go on our operating system (, or ) And open PuTTY. At the Host Name (or IP address) get static IP set point 4 and open 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 via SSH to VirtualBox CentOS - Settings & Configuration.

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

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

About the author

Stealth LP

Founder and editor Stealth SettingsIn 2006 date.
Experience on Linux operating systems (especially CentOS), Mac OS X, Windows XP> Windows 10 and WordPress (CMS).

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment is processed.