SSH error ( Read from socket failed: Connection reset by peer ) and it's solution
阿新 • • 發佈:2018-12-30
ssh cann't connected ,event in localhost
[[email protected] 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 )
[[email protected] ~]#ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key
[ [email protected] ~]#ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key
[[email protected] ~]#/etc/init.d/ssh restart
[[email protected] ~]# /etc/init.d/sshd restart