Skip to content

Instantly share code, notes, and snippets.

@subfuzion
Last active August 13, 2023 08:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save subfuzion/2a1d1a4757e5c9319777258b30f6ed7d to your computer and use it in GitHub Desktop.
Save subfuzion/2a1d1a4757e5c9319777258b30f6ed7d to your computer and use it in GitHub Desktop.
Enable X11 forwarding on Ubuntu 23.04
# ensure `X11Forwarding yes` is set (or uncommented)
sudo vi /etc//etc/ssh/sshd_config

# confirm no mistakes in config
sudo sshd -t -f /etc/ssh/sshd_config

# restart sshd
sudo systemctl restart sshd.service

# if any issues
sudo systemctl status sshd.service

Secure:

ssh -Y user@host

If security isn't an issue:

ssh -X user@host
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment