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