Skip to content

Instantly share code, notes, and snippets.

@nshores
Created October 25, 2018 18:59
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 nshores/ce3dd558df557ff3b1209aff6f440ee0 to your computer and use it in GitHub Desktop.
Save nshores/ce3dd558df557ff3b1209aff6f440ee0 to your computer and use it in GitHub Desktop.
X11 forwarding osx
Steps for X11 forwarding with OSX -
Install Xquartx with Homebrew --
brew cask install xquartz
Set preferences for xquartz
open -a XQuartz. In the XQuartz preferences, go to the “Security” tab and make sure you’ve got “Allow connections from network clients” ticked:
Use xhost on remote machine to allow access to local client for x11 forwarding
xhost + 1.1.1.1 (SSH client ip)
Set env variable on remote machine to local ssh client ip
env DISPLAY=1.1.1.1:0
Run remote x11 app from ssh session on remote machine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment