【问题标题】:Failed to establish initial TCP/IP connection (Chilkat-Python)无法建立初始 TCP/IP 连接 (Chilkat-Python)
【发布时间】:2019-06-30 02:52:51
【问题描述】:

我正在尝试使用 python-chilkat 模块将文件从 raspberry pi 发送到我的 Windows pc。但是它返回这种错误:

ChilkatLog:Connect_Ssh:DllDate:2018 年 12 月 21 日 ChilkatVersion:9.5.0.76 UnlockPrefix:30天试用架构:Little Endian; 32 位 语言:armhf linux Python 3.* VerboseLogging:0 connectInner:
主机名:192.168.1.4 端口:22 sshConnect: 连接套接字: connect_ipv6_or_ipv4: getsockopt 指示错误。 socketErrno: 111 socketError:连接被拒绝 --connect_ipv6_or_ipv4 connect_ipv6_or_ipv4: getsockopt 指示错误。 socketErrno: 111 socketError:连接被拒绝 --connect_ipv6_or_ipv4 connect_ipv6_or_ipv4: getsockopt 指示错误。 socketErrno: 111 socketError:连接被拒绝 --connect_ipv6_or_ipv4 connect_ipv6_or_ipv4: getsockopt 指示错误。 socketErrno: 111 socketError:连接被拒绝 --connect_ipv6_or_ipv4 --connectSocket 无法建立初始 TCP/IP 连接 主机名:192.168.1.4 端口:22 --sshConnect --connectInner 失败。 --Connect_Ssh --ChilkatLog

有人可以向我解释为什么会出现这些错误吗?

【问题讨论】:

    标签: python-3.5 raspberry-pi3 chilkat


    【解决方案1】:

    请参阅此在线示例,该示例使用不同的失败案例进行实验以查看返回的错误:https://www.example-code.com/chilkat2-python/socket_connect_fail.asp

    在某些测试用例中,您会看到“连接被拒绝”,这与“连接被拒绝”相同。在其他情况下,您会超时。导致“连接被拒绝”的情况是失败的最可能原因。

    PS> 我知道我所指的例子是一个简单的 TCP 套接字连接,但是 SSH 是从一个简单的 TCP 连接开始的,这就是失败的原因。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2010-11-03
      • 1970-01-01
      • 2016-11-30
      • 2012-11-11
      • 2017-04-26
      • 1970-01-01
      相关资源
      最近更新 更多