Putty login without a password in linux

Source: Internet
Author: User

 

When using linux, you often need to enter a password. When the password is long, it is a nightmare to use a long and weird password, especially after setting denyhost, if the login fails several times in a row, the system will refuse to log on again within a certain period of time.

Linux Password-less login is a big topic, including ssh password-less connection, scp password-less copy, rsync password-less synchronization, and so on.

Today, we will only discuss remote linux with no password on the putty side.

Now let's get started.

 

Part 1: Environment and tools:

 

Linux: Server, ubuntu 10.0.4; server name, jia_server_svn.net; User Name & password, jia/jia

Putty: can be downloaded. Connect to remote linux

Putty key generator: Generate public/private.

# NOTE: For putty and puttygen, you can download them online or in csdn (I uploaded them myself). You can also download them on the "Official Website" of putty:

Http://www.chiark.greenend.org.uk /~ Sgtatham/putty/

Http://www.chiark.greenend.org.uk /~ Sgtatham/putty/download.html

Http://www.putty.org/

 

Part 2: Installation Steps

 

Step 1: Run PuTTY Key Generator

 

Step 2: slide the mouse to generate public/private pair

 

 

Step 3: Save the Private Key

 

 

 

Step 4: Save the public key. Of course, it can also be left empty.

 

 

 

Step 5: Write the public key to the server

# NOTE: The. ssh directory under the user does not exist. Generally, if you use ssh to connect to another server, A. ssh directory is generated under the current user directory.

 

 

# NOTE: here, the authorized_keys file is also concurrently existing. For the first time, you often need to manually create it. In addition, multiple public keys can be written in the file, just like the file below me, line2 and line3 are related to git.

 

Step 6: Open putty and Configure Connection --> ssh-> Auth

 

 

 

 

 

 

 

 

 

 

Step 7: Open putty again and enter the user name to log in. Need to enter the password? Why? Didn't I configure sshkey myself?

 

 

Well, I didn't save the Session on purpose just now, so that the saving during login here won't be too abrupt.

The specific configuration process is as follows:

 

But when you finish this step. Congratulations, you have mastered the essence of this blog, and you have no value for the blog's several-minute stay concurrency.

If you have any questions, please contact us.

 

 

 

NAME: Jia Xiaolei/Jia Xiaolei

 

MOBILE: 13011292217

QQ: 281304051

MICRO-BLOG: http://weibo.com/2183890715

GMAIL: jiaxiaolei19871112@gmail.com

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.