是什么导致了 paramiko.SSHException:无效的数据包阻塞?

发布于 2024-09-25 14:42:54 字数 890 浏览 6 评论 0原文

当我尝试使用 paramiko(在结构内部,无论其价值如何)连接到我们的内部服务器之一时,我收到此错误:

Retrieving packages from server p-websvr-004
[p-websvr-004] run: /usr/sbin/pkg_info -aD|grep "Information for"
starting thread (client mode): 0x179f090L
Banner: ----------------------------------------------------------------------
Banner: Welcome to Mycompany, Inc.  Unauthorized access, is strictly prohibited
Connected (version 2.0, client OpenSSH_4.5p1)
Exception: Invalid packet blocking
Traceback (most recent call last):
  File "/Users/crose/virtualenv/mycompany/lib/python2.6/site-packages/paramiko/transport.py", line 1491, in run
    ptype, m = self.packetizer.read_message()
  File "/Users/crose/virtualenv/mycompany/lib/python2.6/site-packages/paramiko/packet.py", line 344, in read_message
    raise SSHException('Invalid packet blocking')

据我所知,我们拥有的所有其他主机都可以工作。是什么原因导致这种情况发生,我该如何解决?

When I attempt to connect to one of our internal servers using paramiko (inside of fabric, for what it's worth) I get this error:

Retrieving packages from server p-websvr-004
[p-websvr-004] run: /usr/sbin/pkg_info -aD|grep "Information for"
starting thread (client mode): 0x179f090L
Banner: ----------------------------------------------------------------------
Banner: Welcome to Mycompany, Inc.  Unauthorized access, is strictly prohibited
Connected (version 2.0, client OpenSSH_4.5p1)
Exception: Invalid packet blocking
Traceback (most recent call last):
  File "/Users/crose/virtualenv/mycompany/lib/python2.6/site-packages/paramiko/transport.py", line 1491, in run
    ptype, m = self.packetizer.read_message()
  File "/Users/crose/virtualenv/mycompany/lib/python2.6/site-packages/paramiko/packet.py", line 344, in read_message
    raise SSHException('Invalid packet blocking')

Every other host we have works, as far as I can tell. What's causing this to happen, and how can I fix it?

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

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

发布评论

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

评论(1

倚栏听风 2024-10-02 14:42:54

第一个明显的问题是,该主机与其他主机有何不同?

从外观上看,这可能是 SSH 服务器中的一个错误。命令行上的 openssh 是否有效?它是否使用不同的密码?

First obvious question, how is this host different than the rest?

By the looks of it, it could be a bug in the SSH server. Does openssh on the command line work, and is it using a different cipher?

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