Configure nat connection and ssh connection in vm

Source: Internet
Author: User
Tags ssh port ssh server
Configure the nat connection and ssh connection in the vm-Linux Enterprise Application-Linux server application information. For more information, see. Configure the nat network connection, start the nat connection of the vm, configure the linux ip address to be automatically obtained by dhcp, or manually specify it. The ip address CIDR block of linux and the ip address of vmnet8 are in the same CIDR block. The network management is xxx. xxx. xxx.2 and OK.

Install ssh server
Apt-get install openssh-server

You also need to configure vm port ing to connect to linux in the vm. Edit --> virtual network settings... --> nat tab

Edit button -- port transfer -- add a ing. The virtual ip address is your linux ip address, ssh port 22, and host port ing is a listening port in the window. OK.

In this way, putty can connect to linux in vm through localhost: mapped host port.
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.