当前时区为 UTC + 8 小时



发表新帖 回复这个主题  [ 2 篇帖子 ] 
作者 内容
1 楼 
 文章标题 : 有没有办法将其他linux机器的X GUI 转发到ubuntu机器上?
帖子发表于 : 2015-11-01 19:52 

注册: 2009-10-29 11:18
帖子: 6
送出感谢: 1
接收感谢: 0 次
在windows上,使用putty和xming的组合,就能将linux的GUI界面投射到windows上。当然linux上,会先执行xhost +命令。
使用ubuntu主机怎么实现这一点呢?


================================================================================================
参考
http://www.fwolf.com/blog/post/166
http://ubuntuforums.org/showthread.php?t=2017480
$ ssh oracle@192.168.1.118 -X
oracle@192.168.1.118's password:
Last login: Sun Nov 1 07:05:12 2015 from 192.168.1.107
/usr/bin/xauth: creating new authority file /home/oracle/.Xauthority
[oracle@base ~]$ gedit
[oracle@base ~]$ gedit &
[1] 2869
[oracle@base ~]$

或者
~$ ssh oracle@192.168.1.118 -Y
oracle@192.168.1.118's password:
Last login: Sun Nov 1 07:22:11 2015 from 192.168.1.107
[oracle@base ~]$ gedit
[oracle@base ~]$ gedit &
[1] 2925
[oracle@base ~]$

两种方法都可以,现在就是不知道这两种有什么不同呢?
$ man ssh #执行这条命令时找到了下面的说明

-X Enables X11 forwarding. This can also be specified on a per-host
basis in a configuration file.

X11 forwarding should be enabled with caution. Users with the
ability to bypass file permissions on the remote host (for the
user’s X authorization database) can access the local X11 display
through the forwarded connection. An attacker may then be able
to perform activities such as keystroke monitoring.

For this reason, X11 forwarding is subjected to X11 SECURITY
extension restrictions by default. Please refer to the ssh -Y
option and the ForwardX11Trusted directive in ssh_config(5) for
more information.

-x Disables X11 forwarding.

-Y Enables trusted X11 forwarding. Trusted X11 forwardings are not
subjected to the X11 SECURITY extension controls.

-y Send log information using the syslog(3) system module. By
default this information is sent to stderr.


附件:
ssh user@ip -X.png
ssh user@ip -X.png [ 470.01 KiB | 被浏览 661 次 ]



最后由 zcbcx 编辑于 2015-11-01 21:15,总共编辑了 7 次
页首
 用户资料  
 
2 楼 
 文章标题 : Re: 有没有办法将其他linux机器的X GUI 转发到ubuntu机器上?
帖子发表于 : 2015-11-01 19:58 
头像

注册: 2007-07-14 20:45
帖子: 1122
送出感谢: 59
接收感谢: 30
投射?????怎么理解?


页首
 用户资料  
 
显示帖子 :  排序  
发表新帖 回复这个主题  [ 2 篇帖子 ] 

当前时区为 UTC + 8 小时


在线用户

正在浏览此版面的用户:Bing [Bot] 和 4 位游客


不能 在这个版面发表主题
不能 在这个版面回复主题
不能 在这个版面编辑帖子
不能 在这个版面删除帖子
不能 在这个版面提交附件

前往 :  
本站点为公益性站点,用于推广开源自由软件,由 DiaHosting VPSBudgetVM VPS 提供服务。
我们认为:软件应可免费取得,软件工具在各种语言环境下皆可使用,且不会有任何功能上的差异;
人们应有定制和修改软件的自由,且方式不受限制,只要他们自认为合适。

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
简体中文语系由 王笑宇 翻译