Home > Operation and Maintenance > Linux Operation and Maintenance > Reasons and solutions why the Linux remote server cannot log in via SSH

Reasons and solutions why the Linux remote server cannot log in via SSH

王林
Release: 2019-11-14 11:46:26
Original
7401 people have browsed it

Reasons and solutions why the Linux remote server cannot log in via SSH

Problem description

The Linux remote server suddenly cannot log in via SSH, and the login error is reported:

ssh_exchange_identification: read: Connection reset by peer。
Copy after login

Cause of the problem

The permissions of the var directory were modified during the installation of the MySQL database.

Solution

Change the permissions of SSH related files back, make sure the permissions are 755 and the owner is root:root.

Repair file permissions

chmod 755 /var/empty/sshd
Copy after login

If the owner is wrong, you need to modify the owner:

chown root:root /var/empty/sshd
Copy after login

Restart the sshd service

service sshd restart
Copy after login

Recommended tutorial: Linux tutorial

The above is the detailed content of Reasons and solutions why the Linux remote server cannot log in via SSH. For more information, please follow other related articles on the PHP Chinese website!

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