[转载]X11Forwarding needs xorg-x11-xauth

http://brandonhutchinson.com/wiki/X11Forwarding_needs_xorg-x11-xauth

 

In this example on a RHEL 5 system, X11Forwarding is enabled in /etc/ssh/sshd_config, but cookie-based access will not work until the xorg-x11-xauth package and its dependency (libXmu) are installed.

$ grep X11Forwarding /etc/ssh/sshd_config
X11Forwarding yes
$ echo $DISPLAY
  • Install the xorg-x11-xauth package and its dependency (libXmu).
# yum -y install xorg-x11-xauth
  • Login to the system with X11 forwarding enabled.
/usr/bin/xauth:  creating new authority file /root/.Xauthority
$ echo $DISPLAY
localhost:10.0
posted @ 2012-12-24 13:41  酱油猫  阅读(737)  评论(0编辑  收藏  举报