未能建立初始 TCP/IP 连接 (Chilkat-Python)

Failed to establish initial TCP/IP connection (Chilkat-Python)

我正在尝试使用 python-chilkat 模块。但是它返回这种错误:

ChilkatLog: Connect_Ssh: DllDate: Dec 21 2018 ChilkatVersion: 9.5.0.76 UnlockPrefix: 30-day trial Architecture: Little Endian; 32-bit Language: armhf linux Python 3.* VerboseLogging: 0 connectInner:
hostname: 192.168.1.4 port: 22 sshConnect: connectSocket: connect_ipv6_or_ipv4: getsockopt indicates an error. socketErrno: 111 socketError: Connection refused --connect_ipv6_or_ipv4 connect_ipv6_or_ipv4: getsockopt indicates an error. socketErrno: 111 socketError: Connection refused --connect_ipv6_or_ipv4 connect_ipv6_or_ipv4: getsockopt indicates an error. socketErrno: 111 socketError: Connection refused --connect_ipv6_or_ipv4 connect_ipv6_or_ipv4: getsockopt indicates an error. socketErrno: 111 socketError: Connection refused --connect_ipv6_or_ipv4 --connectSocket Failed to establish initial TCP/IP connection hostname: 192.168.1.4 port: 22 --sshConnect --connectInner Failed. --Connect_Ssh --ChilkatLog

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

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

在某些测试用例中,您会看到 "connection rejected" 与 "connection refused" 相同。在其他情况下,您会超时。导致 "connection rejected" 的情况最有可能导致失败。

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