xrdp
vnc
xming
http://www.straightrunning.com/XmingNotes/#head-144
尝试只用ssh -Y来转发,没有成功,最后还是用了一站式服务的putty。
git bash中提供的bash的模拟环境,用来ssh连接非常合适,在windows上安装过git之后一般默认都会安装。就只差一个xserver,所以使用git bash来实现图形转发,和xming作为xserver搭配非常完美,以下为解决方案
- git bash中配置
export DISPLAY=localhost:0.0 # 注意一定要加上localhost,否则会出现 # connect /tmp/.X11-unix/X0: No such file or directory - 打开
xming软件 - 在
git bash里连接远程服务器,同时指定图形转发-Y选项ssh -Y <你的服务器>
xpra
指定应用(不推荐)
服务器端把xterm在display:100上输出
xpra start :100 --start=xterm
windows启动xpra客户端
连接填上主机名,display号即可
期间遇到报错
Warning: failed to create script directory
没有指定环境变量$XDG_RUNTIME_DIR,导致默认文件夹没有权限
特地指定一个文件夹
export XDG_RUNTIME_DIR=~/xpra
解决报错问题
不指定应用
xpra start :100 --start=xterm
并配置当前terminal的DISPLAY
export DISPLAY=:100

本文详细介绍如何在Windows环境下利用GitBash、Xming及Xpra等工具进行SSH图形界面转发,解决图形应用远程访问难题。文章提供具体配置步骤,包括设置DISPLAY变量、Xming的使用、以及Xpra的高级应用技巧。
2647

被折叠的 条评论
为什么被折叠?



