Linux VBox in Linux settings Nat,host Putty can be accessed

Source: Internet
Author: User

Http://www.linuxidc.com/Linux/2012-02/53989.htm Use the Network Bridge mode must host networking, otherwise unable to connect

First look here: 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

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

Just a simple implementation, other refinement of the thing came across the extension, support open source software, implemented as follows:

Enter Guestos:

#/sbin/ifconfig

View Inet addr:10.0.2.15

Then go to Hostos, look at the control Panel, look at the network and Sharing center of VirtualBox Host-only

IP address of the IPv4 property: 192.168.56.1

Ready enough, the following decisive configuration:

Tip: The default port for SSH is 22

Open VirtualBox Settings window-〉 Network-〉adapter1 Enable network connection-〉 Connection: Nat---access network cable

Port Forwarding, set as follows:

Map the TCP protocol's 192.168.56.1:2222 to 10.0.2.15:22.

OK, restart, open putty.

Session-> Host name (or IP address) 192.168.56.1; port:2222-Open

Linux VBox in Linux settings Nat,host Putty can be accessed

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.