我需要使用我的 WSL (Ubuntu 20.04) 从服务器获取数据,为此我运行命令
rsync -av -e "ssh -vvv -oPort=5822" 'address'
其中“地址”当然会替换为实际地址。这样做会导致以下错误
OpenSSH_8.2p1 Ubuntu-4, OpenSSL 1.1.1f 31 Mar 2020
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: include /etc/ssh/ssh_config.d/*.conf matched no files
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: resolving 'adress' port 5822
debug2: ssh_connect_direct
debug1: Connecting to 'address' ['ip'] port 5822.
debug1: connect to address 'ip' port 5822: Resource temporarily unavailable
ssh: connect to host 'adress' port 5822: Resource temporarily unavailable
rsync: connection unexpectedly closed (0 bytes received so far) [Receiver]
rsync error: unexplained error (code 255) at io.c(235) [Receiver=3.1.3]
最初在线搜索解决方案让我相信防火墙设置导致了这个问题。但是,尽管在 Windows 上关闭了我的防火墙,并在我的 WSL 上禁用了 UFW,但问题仍然存在。
还有什么我应该尝试的吗?
如果您需要有关我的设置的更多信息,请告诉我