3 linux gtk mac-osx x11 x11forwarding
我在我的远程 linux 机器上安装了一个程序 wireshark,我正在尝试使用 SSH 从我的 mac 计算机上使用 X11 运行它。这是我的终端...
macosx$ echo $DISPLAY
/tmp/launch-f4w6k6/:0
macosx$ ssh -X root@myserver.com
root@myserver.com's password:
remoteubuntu:~# echo $DISPLAY
remoteubuntu:~# wireshark
(wireshark:18927): Gtk-WARNING **: cannot open display:
Run Code Online (Sandbox Code Playgroud)
这是 /etc/ssh/sshd_config 中的几行
X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
TCPKeepAlive yes
#UseLogin no
Run Code Online (Sandbox Code Playgroud)
谢谢您的帮助!
小智 5
MacOS X Lion 中未安装 X11。MacOS X Lion 用户必须安装 XQuartz 才能使用 ssh -X 或 -Y 才能工作。
供参考:关于 X11 和 OS X Mountain Lion