问题: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
然后问题解决
标签:reset,socket,Read,chown,keys,host,报错,ssh,key 来源: https://blog.csdn.net/weixin_45697805/article/details/121340823