I have this problem after every macOS upgrade also. I always have to edit /private/etc/ssh/sshd_config with the following:
AllowAgentForwarding yes AllowTcpForwarding yes X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost no XAuthLocation /opt/X11/bin/xauth On Mon, Apr 26, 2021 at 12:00 PM <x11-users-requ...@lists.apple.com> wrote: > Send X11-users mailing list submissions to > x11-users@lists.apple.com > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.apple.com/mailman/listinfo/x11-users > or, via email, send a message with subject or body 'help' to > x11-users-requ...@lists.apple.com > > You can reach the person managing the list at > x11-users-ow...@lists.apple.com > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of X11-users digest..." > Today's Topics: > > 1. xauth issue? (Geof Sawaya) > 2. Re: xauth issue? (Tom Lane) > 3. Re: xauth issue? (Geof Sawaya) > > > > ---------- Forwarded message ---------- > From: Geof Sawaya <geof.saw...@gmail.com> > To: x11-users@lists.apple.com > Cc: > Bcc: > Date: Mon, 26 Apr 2021 10:50:32 -0700 > Subject: xauth issue? > Hi x11-users: > > I suddenly am unable to connect to x-server with XQuartz. > > ATM, I see the same cookie on host and remote via `xauth list` (but I > don't understand xauth well enough to know if this is desired). > > It looks like DISPLAY is being set correctly on the remote host, but I get: > > emacs & > [1] 1945942 > [username]~% X11 connection rejected because of wrong authentication. > Display localhost:10.0 unavailable, simulating -nw > > This is after logging in with '[username] -Y [hostname]. > > Coincidentally, I'm seeing in my local system.log: > > system.log.0:Apr 23 23:06:54 [username] com.apple.xpc.launchd[1]: > Coalition Cache Hit: app<application.org.xquartz.X11.3274875.3274883(501)> > [2028] > system.log.0:Apr 23 23:06:55 [username] X11.bin[49359]: getattrlist failed > for > /System/Library/Extensions/AppleIntelKBLGraphicsGLDriver.bundle/Contents/MacOS/AppleIntelKBLGraphicsGLDriver: > #2: No such file or directory > system.log.0:Apr 23 23:06:55 [username] X11.bin[49359]: getattrlist failed > for > /Library/GPUBundles/AMDRadeonX6000GLDriver.bundle/Contents/MacOS/ATIRadeonX6000SCLib.dylib: > #2: No such file or directory > system.log.0:Apr 23 23:06:55 [username] X11.bin[49359]: getattrlist failed > for > /System/Library/Extensions/AMDRadeonX6000GLDriver.bundle/Contents/MacOS/ATIRadeonX6000SCLib.dylib: > #2: No such file or directory > system.log.0:Apr 23 23:06:55 [username] X11.bin[49359]: getattrlist failed > for > /System/Library/Frameworks/OpenGL.framework/Resources//GLRendererFloat.bundle/GLRendererFloat: > #2: No such file or directory > > > > > > ---------- Forwarded message ---------- > From: Tom Lane <t...@sss.pgh.pa.us> > To: Geof Sawaya <geof.saw...@gmail.com> > Cc: x11-users@lists.apple.com > Bcc: > Date: Mon, 26 Apr 2021 14:07:14 -0400 > Subject: Re: xauth issue? > Geof Sawaya via X11-users <x11-users@lists.apple.com> writes: > > I suddenly am unable to connect to x-server with XQuartz. > > ATM, I see the same cookie on host and remote via `xauth list` (but I > don't > > understand xauth well enough to know if this is desired). > > It looks like DISPLAY is being set correctly on the remote host, but I > get: > > > emacs & > > [1] 1945942 > > [username]~% X11 connection rejected because of wrong authentication. > > Display localhost:10.0 unavailable, simulating -nw > > I used to routinely get this after macOS updates, if I didn't then > reinstall XQuartz. If you've recently done an OS update then try that. > > I've since found that you can avoid the need to reinstall by not > depending on the system value of XAuthLocation, which seems to be > what the OS update is resetting. Now I have this in ~/.ssh/config: > > # Set global defaults: > # (XAuthLocation is needed to support XQuartz) > Host * > UseKeyChain no > XAuthLocation /opt/X11/bin/xauth > > and I've not had any problems over the last few OS updates. > > regards, tom lane > > > > > ---------- Forwarded message ---------- > From: Geof Sawaya <geof.saw...@gmail.com> > To: Tom Lane <t...@sss.pgh.pa.us> > Cc: x11-users@lists.apple.com > Bcc: > Date: Mon, 26 Apr 2021 11:40:47 -0700 > Subject: Re: xauth issue? > Hi Tom -- > > Thanks so much for your answer. > > I already had the XAuthLocation in my config. I did add the 'UseKeyChain > no'. > > However, after restarting XQuartz and doing another ssh login, I still > have the same problem. > > I spent pretty much a whole day trying to get this resolved, combing > through logs, etc. I'm at a loss. > > > > On Mon, Apr 26, 2021 at 11:07 AM Tom Lane <t...@sss.pgh.pa.us> wrote: > >> Geof Sawaya via X11-users <x11-users@lists.apple.com> writes: >> > I suddenly am unable to connect to x-server with XQuartz. >> > ATM, I see the same cookie on host and remote via `xauth list` (but I >> don't >> > understand xauth well enough to know if this is desired). >> > It looks like DISPLAY is being set correctly on the remote host, but I >> get: >> >> > emacs & >> > [1] 1945942 >> > [username]~% X11 connection rejected because of wrong authentication. >> > Display localhost:10.0 unavailable, simulating -nw >> >> I used to routinely get this after macOS updates, if I didn't then >> reinstall XQuartz. If you've recently done an OS update then try that. >> >> I've since found that you can avoid the need to reinstall by not >> depending on the system value of XAuthLocation, which seems to be >> what the OS update is resetting. Now I have this in ~/.ssh/config: >> >> # Set global defaults: >> # (XAuthLocation is needed to support XQuartz) >> Host * >> UseKeyChain no >> XAuthLocation /opt/X11/bin/xauth >> >> and I've not had any problems over the last few OS updates. >> >> regards, tom lane >> > _______________________________________________ > X11-users mailing list > X11-users@lists.apple.com > https://lists.apple.com/mailman/listinfo/x11-users >
_______________________________________________ Do not post admin requests to the list. They will be ignored. X11-users mailing list (X11-users@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/x11-users/archive%40mail-archive.com This email sent to arch...@mail-archive.com