WSL OpenSSH 不会打开隧道

WSL OpenSSH 不会打开隧道

我正在使用安装了 Ubuntu 的 WSL。我正尝试通过 SSH 连接到“跳转主机”以访问该主机后面的计算机。当我尝试运行命令来创建隧道时,我收到以下错误消息:

$ ssh -f -N [email protected] -L 0.0.0.0:2201:10.0.0.10:22
bind: Permission denied
channel_setup_fwd_listener_tcpip: cannot listen to port: 2201
Could not request local forwarding.

连接立即关闭,端口不可用(2201)。我可以直接通过 SSH 连接,没有[email protected]任何问题,但我无法打开 SSH 隧道

有人能知道为什么吗?

编辑:尝试使用-vvv,收到以下输出:

Authenticated to example.com ([123.123.123.123]:22).
debug1: Local connections to 0.0.0.0:2201 forwarded to remote address 10.0.0.10:22
debug3: channel_setup_fwd_listener_tcpip: type 2 wildcard 0 addr 0.0.0.0
debug1: Local forwarding listening on 0.0.0.0 port 2201.
bind: Permission denied
channel_setup_fwd_listener_tcpip: cannot listen to port: 2201
Could not request local forwarding.
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x10
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: forking to background
debug1: Entering interactive session.
debug1: pledge: network

相关内容