首页 > 服务器 > ubuntu 用ssh开远程gui程序

作者:ghostry 发布时间:2018-02-10 浏览: 4323

转载注明出处: https://blog.ghostry.cn/server/859.html

首先服务器端安装xauth

apt install xauth

再安装一个表做测试

apt install x11-apps

写配置文件vi /etc/ssh/sshd_config

X11Forwarding yes
X11DisplayOffset 10

重启或重启服务生效。

客户端如果是Ubuntu

ssh -X 用户名@主机
xclock &

成功的话会在本机屏幕出现一个表。
在服务器输入printenv能看到

DISPLAY=localhost:10.0

客户端如果是Windows
需要下载Xming X Server for Windows,它包含主程序字体文件
还需要putty配置参考简书
putty设置

标签: ubuntu ssh

上一篇: 用docker安装gitlab
下一篇: usb over ip 试用

添加新评论 »

*
*

欢迎评论!歡迎評論!Comments welcome!komentoj bonvenaj!댓글 오신 것을 환영합니다!
:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: :cold: :cryy: :cute: :shy: :sleep: :struggle: :tea: :yahou: