Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.