问题: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的主要内容,如果未能解决你的问题,请参考以下文章