Xshell realization of the correct configuration method for remote login of CentOS virtual operating system under VMware

Source: Internet
Author: User
Tags ssh port

    • General Configuration Ideas
    • Bridging Mode Introduction
    • Configuring the Environment
    • Configuration steps
General Configuration Ideas

First, you configure the network connection mode for VMware, using bridging mode. After the configuration is complete, the CentOS virtual machine under VMware needs to be in the network configuration and specify a fixed IP in the same network segment as the host. After the configuration is successful, SSH login configuration under Xshell.

Bridging mode

Bridge network refers to the local physical network card and virtual network card through the VMnet0 Virtual Switch Bridge, physical network card and virtual network card in the topology map on the same status, then the physical network card and virtual network card is equivalent to the same network segment, Virtual switch is equivalent to a real network switch, Therefore, the IP address of the two network card should also be set to the same network segment. The bridging mode is as follows:

Configuring the Environment

VMWare Workstation + centos-6.5-i386 + Xshell 5

Configuration steps

First, in the VMware main Menu "WorkStation", "Virtual Machine", "Settings", the network connection mode is set to bridge mode, and the "Replication Physical network connection status" before the hook. This means that a virtual network card will be created, and all the status of the virtual network card is copied from the actual physical network card.

Second, in the VMware main Menu "WorkStation", "edit", "Virtual Network Editor", select VMnet0, bridge it to "Realtek PCIe GBE Family Controller". Here "Realtek PCIe GBE Family Controller" is a real network card, and VMnet0 is a virtual switch.

Iii. after installing CentOS 6.5 under VMware, enter the following statement to modify the Ifcfg-eth0 file for the relevant network configuration:

Four, open the Ifcfg-eht0 file, set the following:
DEVICE=EHT0//Virtual network card name
Onboot=yes//Indicates that the NIC is activated at system startup
dns1=222.246.1219.80//Your primary DNS address, this can also be 114.114.114.114
DNS2=XXX.XXX.XXX.XXX//Your alternate DNS address
Ipaddr= Your virtual machine IP address (note: The virtual IP address here must be in the same network segment as your real IP address)
netmask=255.255.255.0
gateway= your gateway IP (consistent with your real gateway address)

After completing the above configuration, exit and save. and enter the following statement "service network restart" to restart the network configuration.

Six, input ifconfig, such as the configuration is successful, will appear just configured IP and other information, as shown in.

Seven, enter ping www.baidu.com and ping + your host IP, if you can ping the network configuration of your virtual machine has been successful.

Eight, some virtual system may not start the SSH service, so also enter "Servcie sshd restart";

Nine, enter Xshell, select "New Session Properties", enter the virtual host you want to telnet ip,ssh port number default is 22.

Ten, select "User Authentication", enter the user name and password, select OK to connect. At this point Xshell is connected to the virtual Linux system successfully.


Xshell realization of the correct configuration method for remote login of CentOS virtual operating system under VMware

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.