我正在使用 SSH 隧道。它工作正常,但它定期给我这些消息:
channel 5: open failed: connect failed: Unable to connect to target host
channel 4: open failed: connect failed: Unable to connect to target host
channel 5: open failed: connect failed: Unable to connect to target host
channel 4: open failed: connect failed: Unable to connect to target host
channel 5: open failed: connect failed: Unable to connect to target host
channel 4: open failed: connect failed: Unable to connect to target host
channel 5: open failed: connect failed: Unable to connect to target host
连接工作正常,我还想在终端中主动使用隧道和 SSH 连接。那么如何抑制这些警告消息呢?
答案1
从手册页添加到-q
用于运行 ssh 的命令:
-q Quiet mode. Causes most warning and diagnostic messages to be suppressed.