如何使用SSH从远程Linux在本地macOS上启用图形?


1

hostUbuntu 64-bit

localmacOS 10.13 64-bit

我正在尝试通过来在远程Linux机器上运行程序ssh,并且希望GUI出现在本地macOS笔记本电脑上。

当执行ssh -v -X user@host或时ssh -v -Y user@host,我会收到两条值得注意的消息:

带有-X标志:

debug1: No xauth program.
Warning: Untrusted X11 forwarding setup failed: xauth key data not generated

带有-Y标志:

debug1: No xauth program.
Warning: No xauth data; using fake authentication data for X11 forwarding

当我登录host并执行时which xauth,得到的输出是:/usr/bin/xauth,这使我感到困惑,因为ssh它声明没有xauth程序。

另外,当我最终ssh在Mac上通过运行该程序时(只是命令行版本,没有图形),出现以下错误:

libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
libGL error: No matching fbConfigs or visuals found
libGL error: failed to load driver: swrast
X Error of failed request:  BadValue (integer parameter out of range for operation)
  Major opcode of failed request:  149 (GLX)
  Minor opcode of failed request:  3 (X_GLXCreateContext)
  Value in failed request:  0x0
  Serial number of failed request:  23
  Current serial number in output stream:  26

如何解决此问题,以便可以从主机Linux计算机在本地Mac上运行图形?这是Mac问题吗?


1
我假设在本地运行X11(在Mac上)有效吗?
nohillside

@nohillside我可以确认它可以在本地运行
NaN
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.