The following error occurred connecting to the Linux server with Xshell
Connecting to 42.51.xxx.xxx:22 ...
Connection established.
To escape to local shell, press ' ctrl+alt+] '.
Socket error event:32 error:10053.
Connection closing ... Socket Close.
Connection closed by foreign host.
Disconnected from remote host (42.51.xxx.xxx:22) at 20:00:30.
Type ' help ' to learn. Xshell prompt.
Action: Connect the Linux computer with the SSH tool problem: Read from socket failed:connection Reset by peer
Cause: Changed system permissions chmod 777-r
Workaround: #chmod 400/etc/ssh/*
Re-connect success!!!
Restart SSH
Service sshd Restart
Note: Modify # chmod 770/etc/ssh/ssh_host_dsa_key.pub
# chmod 770/etc/ssh/ssh_host_rsa_key.pub
Restart Gateway
Service Network restart
Advice: Do not change the permissions of Linux system files.
The following error occurred connecting to the Linux server with Xshell