ssh GUI in local Ubuntu14.04

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ssh GUI in local Ubuntu14.04相关的知识,希望对你有一定的参考价值。

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 [email protected]2.2.2.2   | or ssh -Y [email protected]2.2.2.2  
export DISPLAY="127.0.0.1:10.0"

Test : 

xclock

 

以上是关于ssh GUI in local Ubuntu14.04的主要内容,如果未能解决你的问题,请参考以下文章

xming + putty 搭建远程图形化ssh访问ubuntu 14.04

如何为ubuntu server 14.04 安装图形界面

ubuntu 远程gui显示

fix Ubuntu 18.04 cannot login in GUI

Ubuntu14.04开启ssh服务

Ubuntu 14.04LTS Gnome GUI初体验及163更新源配制