X11Forwarding needs xorg-x11-xauth
From Brandonhutchinson.com
(Difference between revisions)
(New page: 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 is...) |
|||
| (3 intermediate revisions not shown.) | |||
| Line 1: | Line 1: | ||
| - | 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 | + | 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''' | $ '''grep X11Forwarding /etc/ssh/sshd_config''' | ||
| Line 6: | Line 6: | ||
$ '''echo $DISPLAY''' | $ '''echo $DISPLAY''' | ||
| + | * Install the '''xorg-x11-xauth''' package and its dependency ('''libXmu'''). | ||
# '''yum -y install xorg-x11-xauth''' | # '''yum -y install xorg-x11-xauth''' | ||
| + | * Login to the system with X11 forwarding enabled. | ||
/usr/bin/xauth: creating new authority file /root/.Xauthority | /usr/bin/xauth: creating new authority file /root/.Xauthority | ||
$ '''echo $DISPLAY''' | $ '''echo $DISPLAY''' | ||
Current revision
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
