Paramiko错误:读取SSH协议标题时出错 [英] Paramiko Error: Error reading SSH protocol banner

查看:345
本文介绍了Paramiko错误:读取SSH协议标题时出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用Fabric作为构建脚本.我只是克隆了一个虚拟机并创建了一个新服务器. Fabric脚本(在下面使用paramiko)可以在一台服务器上正常运行,但不能在另一台服务器上正常运行.由于它是一个克隆,所以我不知道会有什么不同,但是每次我运行Fabric脚本时,都会出现错误Error reading SSH protocol banner.该脚本与两个服务器上的同一用户连接.除了我刚刚克隆的这一新服务器以外,该脚本在所有其他服务器上都可以正常运行.唯一根本不同的是IP地址,其范围完全不同.

I'm using Fabric for my build script. I just cloned one of my VMs and created a new server. The Fabric script (which uses paramiko underneath) works fine one server but not the other. Since it's a clone I don't know what could be different but everytime I run my Fabric script I get the error Error reading SSH protocol banner. This script is connecting with the same user on both servers. The script works fine on all other servers except this new one that I just clones. The only thing that is radically different is the IP address which is totally different range.

关于什么可能导致这种情况的任何想法?

Any ideas on what could be causing this?

推荐答案

此问题与Paramiko,Fabric或SSH守护程序无关.这只是ISP内部网络中的防火墙配置.由于某些原因,它们不允许它们的不同子网之间进行通信.

This issue didn't lie with Paramiko, Fabric or the SSH daemon. It was simply a firewall configuration in ISPs internal network. For some reason, they don't allow communication between different subnets of theirs.

我们无法真正修复防火墙配置,因此我们将所有IP都切换到了同一子网中.

We couldn't really fix the firewall configuration so instead we switched all our IPs to be on the same subnet.

这篇关于Paramiko错误:读取SSH协议标题时出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆