Detailed Implementation of password-free logon tutorials and Linux tutorials in linux

Source: Internet
Author: User

Detailed Implementation of password-free logon tutorials and Linux tutorials in linux

How to Implement password-free logon in Linux

This article mainly introduces information about password-free logon in Linux. It is very good and has reference value. If you are interested, let's take a look.

1. Generate a key in Linux

For the command manual of ssh-keygen, run the "man ssh-keygen" command:

Run "ssh-keygen-t rsa"

A ". ssh" folder is generated in the root directory of the user.

Entering ". ssh" will generate the following files:

Authorized_keys: stores the public key for remote password-free logon. This file records the public keys of multiple machines.

Id_rsa: generated private key file

Id_rsa.pub: generated public key file

Know_hosts: list of known host public keys

If you want the ssh public key to take effect, you must meet at least the following two conditions:

1) the ssh directory permission must be 700

2). The ssh/authorized_keys File Permission must be 600

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.