Read from socket failed: Connection reset by peer 问题

[FAILED]

解决方法:
#chmod 600 sshd_config ssh_host_dsa_key ssh_host_key ssh_host_rsa_key
#chmod 620 moduli
#chmod 644 ssh_config ssh_host_dsa_key.pub ssh_host_key.pub ssh_host_rsa_key.pub
#service sshd start

再次出现如下错误:
[root@bailongjun ssh]# service sshd restart
Stopping sshd:                                              [FAILED]
Starting sshd: /var/empty/sshd must be owned by root and not group or world-writable.
                                                            [FAILED]


  在终端上直接登录,问题显示如下: 
  /var/empty/sshd must be owned by root and not group or world-writable.

原文地址:https://www.cnblogs.com/xinxin1994/p/7724428.html