首页 > 系统服务 > 详细

ssh GUI in local Ubuntu14.04

时间:2017-04-08 12:21:56      阅读:295      评论:0      收藏:0      [点我收藏+]

1.In ssh service agent (controlled computer),find /etc/ssh/sshd_config,make sure [ X11Forwarding yes ],note no [ # ] in front of [ X11Forwarding ],and then :

cd /etc/init.d
./ssh restart

2.In local agent,find /etc/ssh/ssh_config,make sure

ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes

3.Next open terminate,assume ubuntu local agent ip is 1.1.1.1,ssh service agent ip is 2.2.2.2 .Connect to controlled computer by

xhost +2.2.2.2
ssh -X username@2.2.2.2   | or ssh -Y username@2.2.2.2  
export DISPLAY="127.0.0.1:10.0"

Test : 

xclock

 

ssh GUI in local Ubuntu14.04

原文:http://www.cnblogs.com/chanyn/p/6681389.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!