Home >Operation and Maintenance >Linux Operation and Maintenance >What to do if ssh remote login fails in Linux

What to do if ssh remote login fails in Linux

王林
王林Original
2020-05-15 13:19:115085browse

What to do if ssh remote login fails in Linux

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn