【问题标题】:SSH tunnelling in Catalina to use Screen Sharing (VNC)Catalina 中的 SSH 隧道以使用屏幕共享 (VNC)
【发布时间】:2021-01-15 23:22:18
【问题描述】:

我正在使用以下方法尝试通过主设备通过 ssh 隧道连接到远程计算机:

ssh -J username1@1.2.3.4 username2@5.6.7.8 -L 5900:localhost:5900
Password:
Password:
bind [::1]:5900: Address already in use
channel_setup_fwd_listener_tcpip: cannot listen to port: 5900
Could not request local forwarding.

这在 Mojave 上完美运行(之后在新的终端窗口中执行 vnc://localhost)。但在卡特琳娜,没有。我明白了:你无法控制自己的屏幕。

关于端口 5900 已在使用中,我运行了 sudo lsof -i tcp:5900,但我看不到任何使用该端口的进程。

【问题讨论】:

    标签: macos ssh macos-catalina vnc


    【解决方案1】:

    我终于在卡特琳娜做了隧道工作:

    第一个ssh -J username1@1.2.3.4 username2@5.6.7.8 -L 5901:localhost:5900

    然后在新的终端窗口中open 'vnc://localhost:5901'

    【讨论】:

    • 使用不同的本地端口解决了这个问题。谢谢。
    猜你喜欢
    • 2016-02-02
    • 1970-01-01
    • 1970-01-01
    • 2018-05-29
    • 2019-08-07
    • 2011-02-07
    • 1970-01-01
    • 2014-04-16
    • 1970-01-01
    相关资源
    最近更新 更多