问题:Read from socket failed: Connection reset by peer

Posted 运维老司机

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了问题:Read from socket failed: Connection reset by peer相关的知识,希望对你有一定的参考价值。

报错:Read from socket failed: Connection reset by peer

查看报错机器的 /etc/ssh/文件的的权限

ll

查看正常机器的/etc/ssh/文件

ll

对面发现三个文件的权限不一样

解决方法:

将报错的机器赋予正确的用户权限

chown -R root:ssh_keys ssh_host_ecdsa_key
chown -R root:ssh_keys ssh_host_ed25519_key
chown -R root:ssh_keys ssh_host_rsa_key

然后问题解决

以上是关于问题:Read from socket failed: Connection reset by peer的主要内容,如果未能解决你的问题,请参考以下文章

CentOS7使用ssh不能登录,报错:Read from socket failed: Connection reset by peer

ssh远程的时候出现Read from socket failed: Connection reset by peer

NBU故障代码23:socket read failed的故障处理

Push failed: Failed with error: fatal: Could not read from remote repository

解决IDEA 中git 无法自动push 提交问题 Push failed: Failed with error: Could not read from remote repository.(示例代

java.io.IOException: read failed, socket might closed or timeout, read ret: -1