Centos in virtualbox (NAT mode) for SSH

Source: Internet
Author: User
Tags ssh port

Recently, I want to learn how to install oracle in Linux. However, the virtual machine and the physical machine cannot communicate with each other. It is depressing that you can find this article.

My environment is:

Host OS: Windows XP SP3

Guest OS: centos 6.3

Virtual Machine: virtualbox 4.2.6

Connection Type: Nat

The reprinted article is as follows:

First, let's look at this:

Network Address Translation (NAT)

Http://www.virtualbox.org/manual/ch06.html

--------------------------------------------------------------------

Host OS: Windows 7

Guest OS: centos 5.7

Virtual Machine: virtualbox 4.1.2

Connection Type: Nat

--------------------------------------------------------------------

It is just a simple implementation. Other refined things are re-extended and support for open-source software. The implementation is as follows:

Go to guestos:

#/Sbin/ifconfig

View Inet ADDR: 10.0.2.15

Then go to the Hostos to check the control panel and the virtualbox host-only network in the network and sharing center.

IP address of the IPv4 attribute: 192.168.56.1

If you have prepared enough, configure it as follows:

Tip: the default ssh port is 22.

Open the virtualbox settings window> network> adapter1 enable network connection> connection mode: Nat> access network cable>

Port forwarding:


Map the TCP 192.168.56.1: 2222 to 10.0.2.15: 22.

OK. Restart and enable putty.

Session-> Host Name (or IP address) 192.168.56.1; port: 2222-> open

-> Login successful.

From: http://blog.csdn.net/qzier_go/article/details/6875831

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.