Join 1M+ other developers and:
- Get help and share knowledge in Q&A
- Subscribe to topics of interest
- Get courses & tools that help you grow as a developer or small business owner
X11 Forwarding over SSH? Please help!
Getting the error “cannot connect to X server” when attempting to run graphical programs. I am using XQuartz locally on my mac, and ensured that xauth is installed on my droplet. I modified /etc/ssh/sshd_config to include “AllowTcpForwarding yes” and “X11UseLocalhost yes”
I get this error “cannot connect to X server” both thru the droplet console access screen, as well as when using “ssh -X user@ipaddress”
Am I missing something basic? Thanks a million!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.×