Why cannot the private key file permissions be set to 755

Source: Internet
Author: User

1, problem description

Output the following when i.mx6 loads the boot information

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@         warning:unprotected PRIVATE KEY FILE!  0755 for '/usr/local/openssh/etc/ssh_host_rsa_key '             /usr/local/openssh/etc//usr/local/openssh/etc/ssh_host_rsa_key

2. Solution

The permissions for the private key file are set to 700, and the permissions for the public key file (. pub file) are 755

3. Reason

When the file system is loaded on NFS, all files in the file system are changed to 777 permissions.

When the private key file is loaded, it is considered illegal if its permission is 777.

This is because: based on the "Public private key" authentication mode for SSH logon situation, will generate a pair of public private key (public key file name is similar to x.pub, the private key file name X)

Then the public key is placed on the server, the private key is reserved, and when SSH is logged in, the SSH program sends the private key to the server to match the public key on the server.

A successful party can log on. Here's a security question, what if the private key file is stolen by someone else? The permission to set the private key file in Linux is 700, so

If the account is not stolen, the private key file can not be accessed to achieve a certain degree of security assurance.

Why cannot the private key file permissions be set to 755

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.