Last active
February 13, 2017 17:42
-
-
Save nsteele/570e8de39635ce7f5a6e6fa07041f4a5 to your computer and use it in GitHub Desktop.
Enable x forwarding with an Ubuntu server
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
#!/bin/bash | |
# On the server side | |
sudo apt-get install xauth | |
vi /etc/ssh/sshd_config # Add line: X11Forwarding yes | |
# On client side | |
vi ~/.ssh/config # Add line: ForwardX11 yes | |
ssh -X -v user@serverip | |
# if still not working, look at verbose logging from ssh command | |
# confirm working on server side | |
echo $DISPLAY # shouldn't be blank |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment