SecureCRT How to associate with a Linux virtual machine

Source: Internet
Author: User
Tags nameserver

  1. First verify that the virtual network card is working correctly on the host and look at its IP address, as in this example, the IP address of the host's virtual NIC VMnet8 is: 192.168.121.1/24.

    The VMNET8 is a virtual NIC used by VMware for NAT connections.

  2. Open the virtual machine software VMWare8, start Linux in the virtual machine, take RHEL6.3 as an example.

    Log in to the system using the root username and password.

  3. Use the Ifconfig command to view the IP address of the Linux. If the address of the displayed eth0 and the host IP address are in the same network segment, then you can generally communicate (1), if not the same network segment, you can manually configure.

    Use the command ifconfig eth0 192.168.121.22

    You can simply configure the IP address of the eth0, or you can edit the configuration file to configure it in detail, execute the command: Vi/etc/sysconfig/network-scripts/ifcfg-eth0

    Revise the relevant content. (Use of VI can refer to other tutorials)

  4. If you modify the configuration file, you need to restart the network service, using the following command:

    Service Network restart

    After that, use the ifconfig command to see if the IP address is correct, and use the ping command to see if you can connect to the host properly:

    Ping 192.168.121.2

    You can also try to ping a domain name such as www.baidu.com.

    If you can ping the IP address, you cannot ping the domain name, stating that DNS is not configured, you can use the Step 5 method to configure.

  5. "DNS Configuration"

    Execute command: vi/etc/resolv.conf, add two lines:

    NameServer 8.8.8.8

    NameServer 221.5.88.88

    At this point, Linux has been able to connect to the host properly.

  6. Open SECURECRT, click "New Connection", in the "Quick Connect" dialog box, enter the hostname: 192.168.121.22 (that is, the IP address of Linux), username: root, then click "Connect" button.

  7. Enter the password in the pop-up Password entry box.

    If it is your favorite computer, you can choose "Save Password", if it is a public computer, do not select, and then click "OK" to start logging in.

  8. In this way, SECURECRT is logged into Linux and can execute the relevant commands.

  9. The benefits of using SECURECRT are:

    (1) Remote login, operation server;

    (2) The window can be arbitrarily scaled;

    (3) can solve the Chinese garbled problem (set code to UTF-8).

    END
Precautions
    • The IP address of the virtual network card VMnet8 is best "auto get", but need to save VMware's DHCP service to work correctly;
    • In the SECURECRT, generally do not perform the shutdown command;
    • When configuring the server's IP address, firewall, or SSH in the SECURECRT, be sure to correct the operation again: Don't kick yourself out.

The article comes from Baidu experience.

SecureCRT How to associate with a Linux virtual machine

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.