-1

I have previously had some issue with MIT-MAGIC-COOKIE-1 keys so I have temporarily set host + to allow all connections open x windows locally (I am aware of the security flaw).

Now when I launch an application on the remote machine it seems to launch successfully without any errors but won't appear on my local machine, when I echo $DISPLAY it isn't set to localhost. Seems incredibly weird, where are my x windows sent to? How do I fix this?

Here is my debug:

$ firefox
debug1: client_input_channel_open: ctype x11 rchan 3 win 65536 max 16384
debug1: client_request_x11: request from *serverip* 55412
debug1: channel 3: new [x11]
debug1: confirm x11

The server is only available from my bosses IP so I have to proxy through him every time, maybe that's the issue. Do I have any other alternatives.

4

2 回答 2

0

尝试使用ssh -X user@IPAddress

然后从 ssh 连接中运行echo $DISPLAY. 这将输出类似10.0

现在将 DISPLAY 变量设置为该值。例如,运行export DISPLAY=:10.0

现在尝试通过 ssh 连接运行 firefox。

此外,请确保文件中您尝试连接的系统中是否存在以下行:/etc/ssh/sshd_config

X11转发是

X11DisplayOffset 10

X11UseLocalhost 是

于 2013-11-07T17:08:02.803 回答
0

使用 VPN 并在本地运行浏览器 - 这将避免任何远程 X 问题。为此用例设置 VPN 的最简单方法是仅使用ssh内置 VPN 支持

例如,您可以根据完成的页面ip route replace default via 10.0.0.1(或任何 IP)使您的所有网络流量都通过 VPN。

于 2013-11-07T16:54:46.327 回答