CentOS change text interface, SSH mode also requires password login solution

Source: Internet
Author: User

CentOS change text interface, SSH mode also requires password login solution


First, the CentOS change text interface


1, Command mode

Systemctl Set-default Multi-user.target



2, Graphics mode

Systemctl Set-default Graphical.target



Second, after SSH mode also need password login solution


Problem

When setting up SSH password-free login, it is found that some machine settings do not take effect. Some of the machines are normal.

Tracking

Log in to the target machine, and view the sshd logging information. Log information directory for,/var/log/secure
You will find the following words in the log message.
Jul 14:20:33 v138020.go sshd[4917]: Authentication refused: Bad ownership or modes for directory /HOME/DYQ/.SS H

Reason

Sshd for security, the owner of the directory and file permissions have been required. If the permissions are not correct, ssh password-free login does not take effect.
The user directory permission is 755 or 700, which is not 77x.
. SSH directory permissions are typically 755 or 700.
Rsa_id.pub and Authorized_keys permissions are typically 644
The RSA_ID permission must be 600


CentOS change text interface, SSH mode also requires password login solution

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.