Home > Article > Operation and Maintenance > 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!