- Connect to the remote system.
- xauth list
- Select the line outputted by xauth, copy it to buffer... If there are multiple lines, use the one that related to your session -- or try xauth list $DISPLAY
- Su or sudo into the other user.
- xauth add (paste the line from xauth)
The thoughts of a Systems and Network Administrator and computer geek on networking, computers, and life.
Wednesday 14 May 2008
SSH X11 forwarding for other users
Forwarding X11 requests from a remote machine to your workstation is often very useful, especially if you have the habit of using graphical clients, or if you're just forced to use a tool that expects a X server to exist. Yet, when you change to a user other than root, the forwarding will most likely fail. Here's how you can fix this:
Subscribe to:
Post Comments (Atom)
1 comment:
You my man, ROCK!
Post a Comment