Virtual Machine Network connection NAT mode, local with Xshell connection

Source: Internet
Author: User
Tags change settings

When a virtual machine CENTOS6 network connection uses NAT mode, because the host IP is shared, the IP address of the virtual machine and the 22 port are not able to connect to the virtual machine when the Xshell is used.

This will require the port mapping relationship to be configured!

1. Open the Virtual network editor

2. Click Change settings

Select VMnet8 Click Nat Settings

3. Click Add

4. Host port number is located between 1024~65535, I choose 2345 port, Virtual machine address is the virtual machine CentOS IPV4 address, the virtual machine SSH default port is 22

5. Click OK until you exit Setup page 6. Sometimes you need to set up local Internet Connection Sharing

Control Panel-Network and Sharing Center or Network icon right-property

Then click on the left to change the adapter settings

Right-click Local Area Connection-properties-Share

Finally all the way to determine the exit settings, restart the virtual machine, networking try it.

Virtual Machine Network connection NAT mode, local with Xshell connection

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.