Thursday, February 1, 2018

X11Forward

Remote: myremote
Local: mylocal

Make sure X11Forwarding is enabled on remote server.

/etc/ssh/sshd_config
X11Forwarding yes
Step 1:
# ssh -X user@myremote
# xclock
# xauth list
myremote/unix:10  MIT-MAGIC-COOKIE-1  0c86bbc660cf37a8b3c843b190071835
# exit

Step 2:
# xauth list
# xauth add myremote/unix:10  MIT-MAGIC-COOKIE-1  0c86bbc660cf37a8b3c843b190071835
# xauth list

Step 3:

# ssh user@myremote
# xclock

You should be able to see xclock running on your local machine.

No comments:

Post a Comment