Problem description:
The local firewall has been turned off, and the ssh configuration file has allowed root login, but the newly created user cannot log in remotely, nor can the local ssh.
Solution:
Just turn off selinux.
The specific steps are:
1. Execute the [vim /etc/sysconfig/selinux] command to open the configuration file
[root@localhost ~]# vim /etc/sysconfig/selinux
2. Find the configuration [SELINUX=enforcing]
3. Modify the value to [disabled]
4. Restart the system
reboot
Recommended tutorial: linux tutorial
The above is the detailed content of What to do if ssh remote login fails in Linux. For more information, please follow other related articles on the PHP Chinese website!