Macos 错误:";通道3:打开失败:行政禁止:打开失败”;在OSX上通过ssh隧道共享屏幕
我已经通过ssh隧道配置了OSX屏幕共享,但在某个时候它停止了工作。ssh隧道可以工作:Macos 错误:";通道3:打开失败:行政禁止:打开失败”;在OSX上通过ssh隧道共享屏幕,macos,vnc,ssh-tunnel,screensharing,Macos,Vnc,Ssh Tunnel,Screensharing,我已经通过ssh隧道配置了OSX屏幕共享,但在某个时候它停止了工作。ssh隧道可以工作: ssh -L 1202:localhost:5900 user@remote-host.com 但是,当尝试建立屏幕共享连接时(vnc://localhost:1202),远程主机将出现以下错误: channel 3: open failed: administratively prohibited: open failed 我的远程主机的~/.ssh.config中有以下内容: AllowTCPFor
ssh -L 1202:localhost:5900 user@remote-host.com
但是,当尝试建立屏幕共享连接时(vnc://localhost:1202
),远程主机将出现以下错误:
channel 3: open failed: administratively prohibited: open failed
我的远程主机的
~/.ssh.config
中有以下内容:
AllowTCPForwarding yes
PermitOpen any
缺少的元素是远程主机的/etc/hosts
中定义了localhost
的一个条目。我在该文件中添加了以下内容,并恢复了通过ssh隧道的屏幕共享:
127.0.0.1 localhost