Home  >  Article  >  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

王林
王林Original
2019-11-14 11:46:267279browse

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。

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

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

chown root:root /var/empty/sshd

Restart the sshd service

service sshd restart

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!

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