Xshell connecting CentOS

Source: Internet
Author: User
Tags domain name server

1. Configure the NIC

Open Network and Sharing Center to find

192.168.230.1 is the routing address and the gateway address is set to 192.168.230.2

Enter command vi/etc/sysconfig/network-scripts/ifcfg-eth0

Press I to enter edit mode and add the following:

1 is the routing address, 2 is the gateway address, the IP address is the last one starting from 3

Wq Save exit

2. Configure DNS

Edit the DNS configuration file vi/etc/resolv.conf

Enter the following content

8.8.8.8 for Google name server

114.114.114.114 for domestic domain name server

3. Test the network

Input reboot restart

Ping the virtual machine router address

Ping www.baidu.com

The network setting succeeds when the following is output

4. Connecting Xshell

New session

Enter user name and password

Connection Successful

Xshell connecting CentOS

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.