从套接字读取失败:连接被对等方重置

发布于 2024-12-01 23:45:07 字数 1459 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

零度° 2024-12-08 23:45:07

sshd 服务器是否正在运行?设置为接受非本地连接(检查 /etc/sshd/sshd_config)?您是否有本地防火墙(iptables)阻止它?如果您尝试通过某种路由器,该路由器是否有防火墙阻止它?

默认情况下,OpenSSH 服务器记录到 syslog 的 AUTH 工具,
ssh 登录尝试的所有详细信息都将保存在 /var/log/auth.log 文件中。检查一下。

这可能是由于密钥文件中的权限错误而导致另一端的身份验证被拒绝而发生。如果需要,请重新创建 ssh_host_dsa_key 和 ssh_host_rsa_key (ssh-keygen -t 'dsa/rsa') 并覆盖 /etc/ssh 中的这些文件。希望这有帮助

Is the sshd server running? Set to accept nonlocal connections (check /etc/sshd/sshd_config)? Do you have a local firewall (iptables) blocking it? If you're trying to go through a router of some sort, does the router have a firewall blocking it?

By default, the OpenSSH server logs to the AUTH facility of syslog,
All the details of ssh login attempts will be saved in your /var/log/auth.log file. Check it.

This can occur due to Authentication refused from the other end due to bad permissions in the key files.Recreate the ssh_host_dsa_key and ssh_host_rsa_key if needed(ssh-keygen -t 'dsa/rsa') and overwrite these files in /etc/ssh.Hope this helps

清风不识月 2024-12-08 23:45:07

“连接被对等方重置”通常意味着您已写入已被对等方关闭的连接。或者,对等方故意重置它,但这种情况非常罕见。

可能您发送了一些对方无法理解的内容,因此它已经放弃了。你确定另一端真的是 SSH 吗?

'Connection reset by peer' usually means that you have written to a connection that has already been closed by the peer. Alternatively the peer has deliberately reset it, but that is pretty rare.

Probably you have sent something the peer doesn't understand so it has given up. Are you sure it really is SSH at the other end?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文