我在我的远程 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)
谢谢您的帮助!