PuTTY logs on to the server with a key

Source: Internet
Author: User
Tags key string

Directory:

I. Title: PuTTY using a key to log on to the server

II. Introduction

Iii. Content

3.1 start using PuTTYgen to create the key and obtain the public key string and private key file.

3.2 copy the public key string to $ HOME/. ssh/authorized_keys

3.3 Pageant: load the key. You only need to enter the key password once after each boot.

3.4 save session

4. Detailed instruction recommendations

 

I. Title: PuTTY using a key to log on to the server

 

 

II. Introduction

2.1PuTTY uses a key to log on to the server, which is within the security scope of the login server door.

2.1PuTTY uses a key to log on to the server, which is frequently used, fast, simple, and automatic.

 

Working in the computer software industry, whether it's Linux O & M ape, programmers, script lions, security siege lions, you don't know PuTTY, you're OUT, learn to use PuTTY, it is a prerequisite for moving towards the actual work direction of Linux. Put Pagent (a computer with a black hat LOGO, isn't it cool) in the startup group, so that Pagent runs automatically every time it starts to run, and then we just need to load the private key, then we can continue to enjoy the fun of automatically logging on to the system. Combined with Plink and PSCP, We can automate a lot of work.You do not need to enter usernames, passwords, long and many commands each time, and then back up some annoying files.In the end, remember to log out of the system. Isn't it troublesome?All these troubles will soon be far away from us. Let's continue.

 

Iii. Content

3.1 start using PuTTYgen to create the key and obtain the public key string and private key file.

 

3.2 copy the public key string to $ HOME/. ssh/authorized_keys

$ HOME/. ssh/authorized_keys

1) # cd ~

2) # ll

3) cd. ssh/

4) vi authorized_keys

5) Enter "o", do not use "I", and copy; ZZ to save.

The content in this text box is a line. When you paste it into vim, don't forget to press the letter o. Otherwise, after you paste it in, the ssh-rsa at the beginning will become sh-rsa, why? Haha, think about it.

Why not press the primary key I? Isn't this insert in vim? The reason is that I am very lazy, press the letter o, I can save one press ENTER key. Even if I press uppercase O, do I have to press Shift again?

 

3.3 Pageant: load the key. You only need to enter the key password once after each boot.

 

 

 

3.4 save session

4. Detailed instruction recommendations

Theme: Wonderful PuTTY Chinese Tutorial:

Html: http://pan.baidu.com/share/link? Consumer id = 159736 & uk = 353199134

Word Format: http://pan.baidu.com/share/link? Consumer id = 159737 & uk = 353199134

Very detailed. You can check it yourself. After reading it, you can solve the problem that PuTTY can remove Chinese Character garbled characters.

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.