Skip to content

Instantly share code, notes, and snippets.

@nsteele
Last active February 13, 2017 17:42
Show Gist options
  • Save nsteele/570e8de39635ce7f5a6e6fa07041f4a5 to your computer and use it in GitHub Desktop.
Save nsteele/570e8de39635ce7f5a6e6fa07041f4a5 to your computer and use it in GitHub Desktop.
Enable x forwarding with an Ubuntu server
#!/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