我有以下设置:
我的工作计算机运行的是 Ubuntu 18.04,具有以下内容/etc/ssh/sshd_config:
# $OpenBSD: sshd_config,v 1.101 2017/03/14 07:19:07 djm Exp $
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
Port 3022
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress …Run Code Online (Sandbox Code Playgroud) 当我ssh -X从 Mac OSX 计算机进入 Ubuntu 18.04 桌面时,我能够进入。但是,当我尝试运行 firefox 或 rstudio 时,我得到
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
Run Code Online (Sandbox Code Playgroud)
其次是
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (8 8 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 8 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 8 8)
qt.glx: qglx_findConfig: Failed to finding matching FBConfig (1 1 1 8)
qt.glx: qglx_findConfig: Failed to finding matching …Run Code Online (Sandbox Code Playgroud) 昨晚我正在玩我的手机(运行 Linux/X 堆栈),我设法通过 ssh 进入我的桌面并运行一个应用程序并让它显示在我的手机上。太棒了。
今天我想做相反的事情。我想在 PC 上查看手机上运行的应用程序。我可以在我的手机上安装一个 SSH 服务器,但坦率地说,我不喜欢纯粹出于安全原因。我希望这是从我的手机启动的。
有没有办法从我的手机连接并将 PC 的 X 连接通过隧道返回到手机,然后在手机上运行显示在 PC 上的应用程序?
我正在尝试通过 ssh 隧道将 x11 流量从我的 ubuntu 14.04 转发到我局域网中的另一台 ubuntu 机器,我使用ssh -X myuser@172.16.31.2它连接到 ubuntu ssh 服务器,但当我尝试打开像歌剧这样的应用程序时,它显示
(opera:13046): Gtk-WARNING **: cannot open display:
Run Code Online (Sandbox Code Playgroud)
我在 sshd_config 文件中启用了 x11 转发和 tcp 转发,但即使我连接到本地主机来调试同样的事情仍然是同样的事情
ssh -X -v localhost
shady@shady:~$ opera
(opera:13046): Gtk-WARNING **: cannot open display:
Run Code Online (Sandbox Code Playgroud)
我不知道为什么,我在一个论坛上看到 lightdm 默认阻止 TCP,但我正在使用 gdm 甚至编辑下的标志
/etc/gdm/custom.conf
Run Code Online (Sandbox Code Playgroud)
[安全]
DisallowTcp = Flase
没有帮助我现在几乎迷路了,没有足够的线程来解决这个问题。这是我的
/etc/ssh/sshd_config
# Package generated configuration file
# See the sshd_config(5) manpage for details
# What ports, IPs and protocols we listen for
Port 22
# Use …Run Code Online (Sandbox Code Playgroud) 在我使用 X11 服务器和实验室环境的工作中,Google Chrome 和 Chromium 浏览器在通过 SSH X11 转发时显示为灰色面板。
这发生在 Ubuntu 16.04 & 18.04 和 LinuxMint 19.2 & 19.3 上。基本上我像其他任何人一样启动 X11 会话:
ssh -X username@xserver##.domain.com
Run Code Online (Sandbox Code Playgroud)
仅供参考:似乎没有其他应用程序可以做到这一点。Firefox、LibreOffice 等工作正常。
在启动应用程序的终端中,唯一明显的错误与 Google 政策和 FontService 有关。如果有人对如何解决此灰色面板问题有任何建议,请告诉我。我愿意附上日志,但请注意,出于隐私原因,它们可能会受到一点审查。
我有一个无头服务器和一个桌面客户端,都运行 XUbuntu 20.04。
我使用“ssh -X servername”登录到服务器
图形应用程序作为普通用户在服务器上运行良好,并显示在台式机上。
但是,当我“sudo graphics-app”(例如“eog”或“update-manager”)时,出现以下错误:
X11 connection rejected because of wrong authentication.
Unable to init server: Could not connect: Connection refused
Run Code Online (Sandbox Code Playgroud)
同样,'sudo emacs' 响应:[sudo] cmb 的密码:
X11 connection rejected because of wrong authentication.
Display localhost:10.0 unavailable, simulating -nw
Run Code Online (Sandbox Code Playgroud)
(并回退到在终端中运行 emacs)。
在早期版本的 XUbuntu(从 12.04 到 18.04 / 18.10 / 19.04)上,我能够通过“sudo”在服务器上运行图形应用程序,并且它们在客户端上正确显示。有什么变了!关于什么以及如何解决它的任何想法?