连接SSH时,产生了一下错误----->Read from socket failed: Connection reset by peer

首先查看日志 

tail -f /var/log/auth.log 

添加参数 -v 获得更详细的连接信息 

ssh user@computer -v 

如果是 rsa and dsa keys 丢失产生的问题, 可以通过下面的方式进行修复: 


①ssh-keygen -t rsa1 -f /etc/ssh/ssh_host_rsa_key 


②ssh-keygen -t dsa  -f /etc/ssh/ssh_host_dsa_key

 

相关文章:

  • 2021-06-28
  • 2021-09-07
  • 2021-11-10
  • 2022-12-23
  • 2022-12-23
  • 2021-11-19
  • 2021-07-04
  • 2022-12-23
猜你喜欢
  • 2021-07-02
  • 2022-12-23
  • 2021-08-19
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案