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

王林
Release: 2020-05-15 13:19:11
Original
5082 people have browsed it

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
Copy after login

2. Find the configuration [SELINUX=enforcing]

3. Modify the value to [disabled]

4. Restart the system

reboot
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template