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

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2021-05-03
  • 2022-12-23
  • 2021-11-19
  • 2021-04-29
  • 2021-07-06
  • 2022-12-23
猜你喜欢
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2021-08-27
  • 2021-10-26
  • 2022-12-23
相关资源
相似解决方案