【问题标题】:Error: "channel 3: open failed: administratively prohibited: open failed" on OS X Screen Sharing over ssh tunnel错误:OS X 屏幕共享上的“通道 3:打开失败:管理禁止:打开失败”通过 ssh 隧道
【发布时间】:2018-05-29 01:14:25
【问题描述】:

我已经通过 ssh 隧道配置了 OS X 屏幕共享,但在某些时候它停止了工作。 ssh 隧道可以工作:

ssh -L 1202:localhost:5900 user@remote-host.com

但是,当尝试建立屏幕共享连接 (vnc://localhost:1202) 时,远程主机会出错

channel 3: open failed: administratively prohibited: open failed

【问题讨论】:

    标签: macos vnc ssh-tunnel screensharing


    【解决方案1】:

    我的远程主机的~/.ssh.config 中有以下内容:

    AllowTCPForwarding yes
    PermitOpen any
    

    缺少的元素是远程主机的/etc/hosts 中定义localhost 的条目。我在该文件中添加了以下内容,并恢复了通过 ssh 隧道进行的屏幕共享:

    127.0.0.1 localhost
    

    【讨论】:

      猜你喜欢
      • 2021-12-06
      • 2016-02-17
      • 2018-01-15
      • 2016-05-06
      • 2023-02-10
      • 1970-01-01
      • 2019-11-30
      • 1970-01-01
      • 2020-05-07
      相关资源
      最近更新 更多