My Linux path----install Linux and connect remotely

Source: Internet
Author: User

  • There are a lot of tutorials for installing Linux online, as long as you've worked with VMware Workstation, it's easy. In this not much to say, degree Niang can solve.

  • After the installation of the Linux system, it is set up under the network, no network how to do remote access classes. In the experimental environment, we generally use bridge mode, and then a DHCP automatically get the same network segment with the host IP address, so you can surf the Internet.

  • At first we entered the system, with the command ifconfig view, network card related situation, can only see a "lo", this is the ring back (lookpack) in English shorthand, each system has a loop back to the port, to test its own network card has no physical failure. Check the network card is not turned on, with Ifconfig-a in the inside can see Eho, this network card name, look carefully found no IP address, we can use dhclient---DHCP automatically get the address, the system default is this. Note: This mode is limited to the experimental environment, simple and fast, in the real world, is the static IP address configuration, you can go through Vi/etc/sysconfig/network-scripts/ifcfg-eth0, to enter the editing page, as follows:

    650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/5A/wKioL1X7ci2AfRUPAADnZwOy71M481.jpg "title=" 1.png " alt= "Wkiol1x7ci2afrupaadnzwoy71m481.jpg"/>

  • Change the bootproto=dhcp to static,

  • Onboot=no change to Yes, boot up


The next step is to increase ipaddr,netmask,gateway,dns

There is a little bit of knowledge, when we in the Ifcfg-eth0, the configuration file to add DNS, the default will be the DNS to write to/etc/resolv.conf this configuration file, in order not to disturb the configuration file, we can add a command: Peerdns=no, we will again/etc /resolv.conf empty, use the command echo >/etc/resolv.conf, and then restart the NIC:/etc/init.d/network restart. Through two graphs, compare: no increase peerdns= No before and after comparison of this command:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/73/5A/wKioL1X7dNCz5X9EAABu-1sZg9U121.jpg "title=" 2.png " alt= "Wkiol1x7dncz5x9eaabu-1szg9u121.jpg"/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/73/5A/wKioL1X7dZTC4MZoAAEC0lzO0JA750.jpg "title=" 3.png " alt= "Wkiol1x7dztc4mzoaaec0lzo0ja750.jpg"/>


    • Next create a remote connection, here we use putty This tool, in fact, there are many tools: Securecrt,xshell and so on, personal preferences.

Putty:http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/73/5D/wKiom1X7dGzzvoILAABX8-Yccj0645.jpg "title=" 4.png " alt= "Wkiom1x7dgzzvoilaabx8-yccj0645.jpg"/>

Enter the IP address of the Linux system to connect, then enter the user name and password to log in successfully.

    • You can also log on via RSA, which is more secure than the password method, as follows:

    1. Create the. SSH directory to hold the public key, mkdir. SSH

    2. In the. SSH directory, create the file Authorized_keys to hold the public key and copy the public key into the Authorized_keys. Next, modify the. SSH directory permissions, chmod ssh;chmod/.ssh/authorized_keys

    3. Turn off SELinux (Linux firewall), by command Setenforce 0, this is only a short shutdown, after a reboot or will take effect, permanent is into the configuration file,/etc/selinux/config, under the selinux= Enforcing changed to disabled.

    4. Clear firewall rule: iptables-f,

    5. Save/etc/init.d/iptables Save and the next time you start the firewall rule will be empty.


Add: IP Add can also view IP address information.


The first time to record their own learning process, feel a bit chaotic, hope more and more good, refueling!!!

This article is from the "My Linux Road" blog, so be sure to keep this source http://8641765.blog.51cto.com/8631765/1695932

My Linux path----install Linux and connect remotely

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.