Putty remote Connection Linux and key verification

Source: Internet
Author: User

Most of the Linux servers we operate are operated remotely, so we need to use the Remote connection tool.

There are three kinds of tools commonly used, PUTTY,XSHELL,SECURECRT.

Let's talk about putty first.

    1. First you need to download putty this software,

      Https://the.earth.li/~sgtatham/putty/0.70/w64/putty.zip

      Download and unzip.

2. You need to know the IP address of the Linux server, the virtual machine can be viewed with IP addr.

3. Open the Putty program, set the name (self-naming, easy to remember) and IP address

4. Then click Save, then click Open, the first entry will pop up a dialog box, select Yes.

5. Enter the user name root and password, the password can not see, after the direct return to the output.

6. Log on to Linux remotely.

7. Set the key authentication below, the key is divided into the public key and the private key.

Find Puttygen Open in putty extracted files.

8. Click Generate to generate the key, note that to keep shaking the mouse, will generate a little faster.

9. Record the public key, and save the private key to the local, set the key password, log on to the Linux need to use.

10. Then go to create a directory and key file on Linux.

[Email protected] ~]# MKDIR/ROOT/.SSH

[Email protected] ~]# chmod 700/root/.ssh

[Email protected] ~]# Vi/root/.ssh/authorized_keys

11. Paste the public key into the Authorized_keys file.

Press the I key to enter edit mode, then paste the generated public key in, click the message can be pasted. (When copying the public key, choose from the back, or you will miss the first letter)

12. Press the ESC key, press ENTER Colon, Wq save to exit.

13. Turn off SELinux.

[Email protected] ~]# Setenforce 0

14. Re-open the putty and set the private key, the private key is saved to the local private key, and remember to putty the first page save to take effect.

15. Then re-login, enter the password for the key.



Putty remote Connection Linux and key verification

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.