码迷,mamicode.com
首页 > 系统相关 > 详细

ssh GUI in local Ubuntu14.04

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

标签:username   lock   rda   ext   agent   led   test   control   play   

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

标签:username   lock   rda   ext   agent   led   test   control   play   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!