Linux Learning Notes (4)-Remote login

Source: Internet
Author: User

According to those online statements, such as Linux server assumptions in the field (Xinjiang), and the Programmer working Environment (Beijing) is too far away, then every time the problem is to go to the scene to debug, it is too annoying.

As a result, people have developed a means of remote login that allows programmers to debug remotely.

For me, my virtual machine is installed on the desktop, and the desktop is placed in the living room.

Although not far, but ...

Now it is October, and Dalian has not been heating, if you go to the living room to learn, that still do not freeze me into a silly force.

So, if you can log in with a notebook, then you can study in the warm quilt ...

—————————————————— Split Line ——————————————————————————

If you want to use Telnet, set a few things.

1. If two computers want to remotely link, then need to be able to surf the internet, but also on the same network segment , because my two computers are connected to the home network, so do not have to change the IP address.

2. Make sure the computer is using a static IP address, the following is the setting method

  Properties → protocol version 4→ Use the following IP address (if you do not know what needs to be filled out, then open the details of the first picture, remember everything inside!) )

  

2. On the Linux virtual machine, set the network card to Bridge mode , and then tick the option below.

  

3. Make sure the network of the two computers is connected

  ifconfig command to see the IP of the Linux machine

  

The red box is the Linux IP address.

Then use ipconfig to query the IP address of the notebook ( see Clearly, Linux command is ifconfig, but Windows uses ipconfig, the second letter is not the same Oh ).

  

Similarly, the red box is the IP address of Windows.

and Ping each other and look at it.

Linux Ping Windows

  

If the above screen, that means OK (a few times to press CTRL + C, to kill this command, otherwise he will not stop!) )

Windows Ping Linux

  

This is the result of using Windows to ping Linux, this time you do not have to press CTRL + C , four times after the appearance, he will stop himself.

  Focus 1: If both computers can surf the internet, but the ping does not work, then go to see if the firewall is shut down.

  

————————————————————————————————————————————————

Next, make sure you have a program on your Linux system that has the SSH service installed

Using the command PS Aux|grep sshd if the following message appears, the SSH service on this computer is OK!

  

If not, then download a put!

The command should be ...

  sudo apt-get install Openssh-server

  Wait for the installation to complete, just press Y to determine it! (If the above problems occur during the installation process, please Baidu!) )

Reference information:http://www.cnblogs.com/mliudong/p/4094519.html

  
After installation, in the PS that command, you should be able to appear sshd process.

————————————————————————————————————————————

Download remote login software, such a wide range of software, can be downloaded according to their own needs, I use putty, because he does not install, is a green software.

Reference information:http://jingyan.baidu.com/article/8ebacdf0d9e86549f75cd57b.html

After opening the software on the Windows side is the following screen: In the yellow box to fill in the IP address of their Linux machine (if you forget, you can use ifconfig view), and then do not need to move, click "Open"

  

Click on the "open", the following screen will appear, directly fill in their own Linux user name, as well as the password can be (fill in the password, and Windows do not, here will not appear *)

  

Once the login is successful, this screen will appear and you will be able to use Linux on Windows.

  

————————————————————————————————————————————————

If the font is too small, you can click on the upper left corner of the icon to modify, yellow box

  

To this, remote login complete, from then on, I can study in the quilt!!!

...... haha haha!

  

  

  

Linux Learning Notes (4)-Remote login

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.