我正在使用以下命令创建 SSH 隧道:
ssh -L 0.0.0.0:9944:localhost:9922 localhost -N -p 8844
它运行良好,没有问题。但是,出于某种原因,当我在终端中执行上述命令并等待某个用户使用隧道时,我的 SSH 终端显示:
channel 1: open failed: connect failed: Connection refused
channel 1: open failed: connect failed: Connection refused
channel 1: open failed: connect failed: Connection refused
channel 1: open failed: connect failed: Connection refused
channel 1: open failed: connect failed: Connection refused
channel 1: open failed: connect failed: Connection refused
channel 1: open failed: connect failed: Connection refused
channel 1: open failed: connect failed: Connection refused
channel 1: open failed: connect failed: Connection refused
channel 1: open failed: connect failed: Connection refused
我不知道为什么会看到此消息,而且更奇怪的是,所有连接都运行正常,它们都被接受了。为什么我会看到这些错误?我尝试用localhost
(127.0.0.1
如下所示)替换,但错误仍然显示在终端中:
ssh -L 0.0.0.0:9944:127.0.0.1:9922 127.0.0.1 -N -p 8844
您知道我可以尝试检查是什么导致了这些错误消息吗?
我的服务器正在运行 Centos 9 流。