返回顶部

Xshell调用图形工具

使用xshell显示调用图形

前提

Xmanager - Passive工具必须存在,xclock会自动调用Xmanager - Passive。并在打开Xmanager  Server:0.0

 

  

安装依赖包

yum -y install xorg-x11-xauth

修改文件/etc/ssh/sshd_config

XAuthLocation /bin/xauth     # which xauth路径为准

X11Forwarding yes

X11UseLocalhost no

重启服务

#systemctl restart sshd

 

测试调用图形xclock

 yum -y install xclock

  注: 需重新ssh 连接,并且只能以连接的用户调用xclock

   

 若是依然调用不了,配置客户端X11转发,当前会话默认属性 

 

 

使用mobaxtrem显示centos上的图形工具

需安装相关依赖:

yum install xorg-x11-xauth xorg-x11-fonts-* xorg-x11-font-utils xorg-x11-fonts-Type1 firefox

注:失败则自己声明Xmanager  Server:0.0地址

#export DISPLAY=10.0.0.1:0.0

开启标志

 

posted @ 2022-02-10 09:49  九尾cat  阅读(394)  评论(0编辑  收藏  举报