赞
踩
1.在windwos下载xming并安装:https://sourceforge.net/projects/xming/ xming属于开源,免费软件。 xmanager也很方便,但属于商业软件
2.在windwos打开powershell中输入:setx DISPLAY "localhost:0.0"
。
3.添加白名单
在Xming的安装目录中,找到X0.hosts文件
添加目标服务器的ip地址
4.在windwos打开xlaunch,配置xming, 只有 No Access Control 一定要勾选,其它默认不变
5.在windwos打开powershell中输入:ssh -Y 用户名@地址 链接远程linux机器(linux机器可以最小安装,不用安装图形界面)。-Y是使用远程图形界面
[root@master ~]# export DISPLAY={windowsIP}:0.0
[root@master ~]# xhost +
access control disabled, clients can connect from any host
[root@master ~]# xclock
Warning: Missing charsets in String to FontSet conversion
[root@master ~]#
可以弹出时钟
PS
如果有报错:
CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password)
则在windwos打开powershell中输入如下命令:
cd /
mkdir dev
cd dev
mkdir tty
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。