X11 forwarding on macOS 26 Tahoe: XQuartz problems and how to get remote windows showing
Short answer. macOS has no X server of its own, so remote X11 windows need XQuartz. macOS 26 (Tahoe) broke two things in it: windows that turned black after a resize, fixed by Apple in macOS 26.5, and OpenGL programs that failed with an Apple-DRI error, fixed in macOS 26.6. So update macOS to 26.6 or later, install XQuartz 2.8.6, log out and back in once, and connect with ssh -X (or ssh -Y for programs that need full access to your display).
ssh -X [email protected]
echo $DISPLAY # on the server: something like localhost:10.0
xclock # or xeyes: a window should open on the Mac
Get it working, step by step
- Update macOS. The redraw bug is gone in 26.5 and the OpenGL one in 26.6, both by Apple's changes to the system, not by an XQuartz update [1] [2].
- Install XQuartz 2.8.6 (14 July 2026), the first stable release since 2.8.5 in January 2023, from xquartz.org [3].
- Log out and back in once. The release notes ask for this after a first install, so that the
DISPLAYvariable is set [3]. - Check the Mac side. In Terminal,
echo $DISPLAYshould print a path that ends inorg.xquartz:0. XQuartz starts by itself when a program first uses it. - Check the server side.
sshd_configneedsX11Forwarding yes, and thexauthprogram must be installed there. - Connect with
ssh -Xand start a small X program such asxclock. Ifecho $DISPLAYon the server prints nothing, forwarding was not set up; see the table below.
ssh -X or ssh -Y
ssh -X asks for untrusted forwarding. Remote programs are treated as untrusted X clients and kept from reading or tampering with what belongs to your other windows, and their access token expires after 20 minutes; after that, new windows are refused until you reconnect [4]. ssh -Y asks for trusted forwarding: remote programs get full access to your display, the same as local ones [4].
Start with -X. Some programs, often those using OpenGL or certain toolkits, don't run under the restrictions and exit with an X error; for those, use -Y, and only to servers you trust, because a trusted remote program could watch the keys you type into other X windows. If the 20 minutes get in the way, set ForwardX11Timeout for that host [4]:
Host build-server.example.com
ForwardX11 yes
ForwardX11Timeout 4h
Common problems and fixes
| What you see | Cause | Fix |
|---|---|---|
| A window turns black, or keeps old content, after a resize | A macOS 26.0 to 26.4 bug that affected X11 programs in general [1] | Update to macOS 26.5 or later. Before the fix, minimising the window and restoring it forced a redraw [6] |
X Error of failed request: BadValue with Major opcode of failed request: 129 (Apple-DRI) from glxgears or another OpenGL program | A second Tahoe bug, fixed in the system and not in XQuartz [2] | Update to macOS 26.6 or later |
Error: Can't open display, and echo $DISPLAY on the server is empty | Forwarding was not requested or the server refused it | Use -X or -Y; on the server set X11Forwarding yes and install xauth. ssh -v -X should print Requesting X11 forwarding with authentication spoofing |
Warning: untrusted X11 forwarding setup failed: xauth key data not generated | ssh couldn't get a restricted token from xauth on the Mac. macOS points ssh at /opt/X11/bin/xauth, which is the copy XQuartz installs | Install XQuartz and make sure it is running; then reconnect |
DISPLAY is empty on the Mac right after installing XQuartz | The variable is set at login [3] | Log out and back in |
| Everything worked, then new windows stop opening | The 20-minute limit of untrusted forwarding [4] | Reconnect, or set ForwardX11Timeout |
OpenGL over XQuartz is still the weak spot. A user reported in November 2026 that an OpenGL program did not refresh on macOS 26.7 with XQuartz 2.8.6, while ordinary X programs were fine [1]. The pre-release XQuartz 2.8.7_rc1 of 25 November 2026 updates Mesa with a workaround for a macOS 26 bug that can misplace OpenGL surfaces [5]. It is a release candidate; try it only if you are affected.
What broke in Tahoe, and when it was fixed
- 27 June 2025: the redraw problem is reported to XQuartz on the second macOS 26 beta: after a resize, parts of a window stay black [1].
- October 2025: the same report on the Apple Developer Forums; an Apple engineer asks for a Feedback report [7].
- 8 December 2025: the AFNI team at the US National Institutes of Health advises its users not to upgrade to Tahoe because of it [6].
- May 2026: users confirm the problem is gone in macOS 26.5, and the XQuartz maintainer closes the issue on 18 May 2026 [1]. AFNI says it had filed the problem with Apple in January [6].
- 14 July 2026: XQuartz 2.8.6 is released [3].
- 28 July 2026: the XQuartz maintainer reports that the OpenGL bug, open since September 2025, was fixed in the system with macOS 26.6 [2].
The lesson for next year's macOS: when X11 breaks after a system upgrade, look at the XQuartz issue tracker before changing your SSH settings. Neither of these bugs had anything to do with SSH.
X11 forwarding in MyXterm on macOS
MyXterm is the free, open-source SSH client we build; its first stable release is v0.1.0. It forwards X11 partial SSH-018, but it has no X server inside: on a Mac it needs XQuartz, like ssh in Terminal does. Drawing is done by XQuartz and macOS, so the two Tahoe bugs above looked the same in any SSH client, and MyXterm does not fix or work around them.
What it does add [8]:
- A setting per session. X11 forwarding in a session's Advanced settings, and Trusted X11 under it. Untrusted is the default, and it is never turned into trusted behind your back: without
xauth, X11 is not forwarded and the pane says so. - It finds XQuartz without the log-out partial PROTO-005. When
DISPLAYisn't set yet but XQuartz is running, MyXterm uses the XQuartz socket that belongs to your user. If XQuartz is installed but not running, the pane offers Start XQuartz. - A reason instead of silence. With no X server, the session still connects and one line in the pane says why X11 is off.
- Both SSH engines. With system OpenSSH, MyXterm sets
ForwardX11Trustedexplicitly. The built-in engine gives the server a random cookie and checks it on every X connection before that connection reaches XQuartz.
What was tested. On 30 November 2026, on macOS 26.6 with XQuartz 2.8.6: from the Mac to an Ubuntu 24.04 server, untrusted, with both engines, a small test X client opened its window on the Mac [9]; and against a local OpenSSH server with DISPLAY unset, both engines reached XQuartz in untrusted and trusted mode [10]. In CI, both engines run end to end on Linux against a real OpenSSH server and Xvfb. Not tested: OpenGL programs, large applications, whether XQuartz enforces the restrictions on untrusted clients, and the Start XQuartz button on screen.
FAQ
Do I still need XQuartz on macOS 26?
Yes. macOS has no X server of its own, so programs forwarded with ssh -X or ssh -Y need XQuartz to draw their windows. XQuartz 2.8.6 was released on 14 July 2026. After a first install, log out and back in so that DISPLAY is set.
Why are my X11 windows black on macOS Tahoe?
macOS 26.0 to 26.4 had a bug that left X11 windows black or stale after a resize. Apple fixed it in macOS 26.5. A separate OpenGL error from the Apple-DRI extension was fixed in macOS 26.6. Update macOS first; an SSH setting will not help.
Should I use ssh -X or ssh -Y?
Start with ssh -X, which is untrusted forwarding: remote programs are restricted and access ends after 20 minutes unless you change ForwardX11Timeout. Use ssh -Y, trusted forwarding, only for programs that fail under those restrictions and only to servers you trust.
Sources
Read on 4 December 2026. Dates of forum and issue posts are in UTC. MyXterm statements are from the repository on the same day; partial
means it works in the app but does not meet its full acceptance criteria yet.
- XQuartz issue 438, macOS Tahoe: X11 applications fail to refresh properly on window resize (opened 27 June 2025, closed 18 May 2026): github.com/XQuartz/XQuartz/issues/438
- XQuartz issue 446, Mesa/GLX issue on macOS Tahoe (opened 16 September 2025, closed 14 July 2026): github.com/XQuartz/XQuartz/issues/446
- XQuartz 2.8.6 release notes, 14 July 2026: xquartz.org/releases/XQuartz-2.8.6.html
- OpenBSD manual, ssh_config(5):
ForwardX11,ForwardX11Trusted,ForwardX11Timeout,XAuthLocation: man.openbsd.org/ssh_config - XQuartz 2.8.7_rc1 release notes, 25 November 2026: xquartz.org/releases/XQuartz-2.8.7_rc1.html
- AFNI message board, macOS Tahoe and XQuartz issues for AFNI users, 8 December 2025 with later updates: discuss.afni.nimh.nih.gov/t/re-macos-tahoe-and-xquartz-issues-for-afni-users/9227
- Apple Developer Forums, X11 applications run with XQuartz not working properly in macOS Tahoe: developer.apple.com/forums/thread/805567
- MyXterm user guide, X11 forwarding: docs/user/X11_FORWARDING.md; pull request #50
- MyXterm lab log, 30 November 2026, section 3: docs/testing/LAB_2026-11-30.md
- MyXterm changelog,
X11 right after installing XQuartz
: CHANGELOG.md
Last updated