Created
July 17, 2013 08:42
-
-
Save dmacvicar/6018883 to your computer and use it in GitHub Desktop.
X forwarding after su - while in ssh -X
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ssh root@host | |
$ echo $DISPLAY | |
localhost:10.0 | |
$ xauth list | |
host/unix:10 MIT-MAGIC-COOKIE-1 f845ff6b6707bda93db8a76f4ebd7c66 | |
host/unix:11 MIT-MAGIC-COOKIE-1 344dbd2a692ca55a90d4b8c040b59499 | |
$ su - user | |
$ export DISPLAY=localhost:10.0 | |
$ xauth add host/unix:10 MIT-MAGIC-COOKIE-1 f845ff6b6707bda93db8a76f4ebd7c66 | |
$ startprogram |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment