SSH error ( Read from socket failed: Connection reset by peer ) and it's solution

SSH error ( Read from socket failed: Connection reset by peer ) and it's solution

ssh cann't connected ,event in localhost
[root@localhost ssh]# ssh 127.0.0.1
Read from socket failed: Connection reset by peer
try the following refer to internet ,but failed (the reference OS is UBUNTU, while mine is fedora )
[root@localhost ~]#ssh-keygen -t dsa  -f  /etc/ssh/ssh_host_dsa_key
[root@localhost ~]#ssh-keygen -t rsa  -f  /etc/ssh/ssh_host_rsa_key
[root@localhost ~]#/etc/init.d/ssh restart

[root@localhost ~]# /etc/init.d/sshd restart

posted @ 2017-02-13 07:42  Mr.Rico  阅读(234)  评论(0编辑  收藏  举报