ssh 在远程桌面上启动 GUI 应用程序

ssh 在远程桌面上启动 GUI 应用程序

我正在尝试启动一个 gstreamer 实例并使用 ssh 将其显示在远程 centos7 桌面上。

我已关注 SE 网站上的几篇帖子,但现在我感到很困惑,不知道到底发生了什么以及为什么它不起作用。 如何通过 SSH 在远程服务器的 X11 显示器上运行 GUI 应用程序腻子 x-11

使用 root 用户仅在封闭网络上进行测试(是的,我知道这很糟糕,但仅用于测试)

Setup
Remote Machine
Centos7 - guest on virtualbox win10 host

Local machine
xshell-> connection -> tunneling -> foward x11 contections to X DISPLAY localhost:0.0

步骤1,

confirm gstreamer is working on centos on guest
local terminal -> gst-launch-1.0 videotestsrc ! ximagesink -->> player opens as expected

第二步

connect via ssh
export DISPLAY=0.0
echo $DISPLAY -->> :0.0
ssh terminal -> gst-launch-1.0 videotestsrc ! ximagesink -->> terminal shows text preroll as expected, but no local window opens on remote desktop

我已经确认远程命令没有打开,方法是尝试firefox myPage.html使用远程框上的本地终端打开,但不使用 ssh 进入远程框。

我的显示器编号是否错误?如果是,我该如何确定要使用哪个显示器?

相关内容