Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/ms-access/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Macos 错误:";通道3:打开失败:行政禁止:打开失败”;在OSX上通过ssh隧道共享屏幕_Macos_Vnc_Ssh Tunnel_Screensharing - Fatal编程技术网

Macos 错误:";通道3:打开失败:行政禁止:打开失败”;在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隧道配置了OSX屏幕共享,但在某个时候它停止了工作。ssh隧道可以工作:

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