Discussion:
[Xquartz-dev] x11 forwarding, El Capitan
John Koren
2015-10-03 10:38:57 UTC
Permalink
After upgrading to El Capitan, my macs are not able to do x11forwarding.

When I ssh -Y to a remote mac host I get the following message: X11
forwarding request failed on channel 0. This indicates that DISPLAY
variable set to a local value - I would expect 10 or larger for a remote
login.

I can ssh -Y to an old Sun computer or a very old mac with no problem.

I noticed that in El Capitan system-wide ssh configuration files are now in
/etc/ssh.

I enabled X11forwarding and included


# XAuthLocation added by XQuartz (http://xquartz.macosforge.org)
Host *
XAuthLocation /opt/X11/bin/xauth

in the ssh_config and sshd_config files in /etc/ssh.

Has anybody faced this issue with El Capitan and found a solution to it?
Martin Costabel
2015-10-03 13:31:15 UTC
Permalink
Post by John Koren
After upgrading to El Capitan, my macs are not able to do x11forwarding.
Same here.

[]
Post by John Koren
I noticed that in El Capitan system-wide ssh configuration files are now
in /etc/ssh.
Xquartz doesn't seem to have noticed this. It creates a file
/etc/sshd_config containing the 2 lines

# XAuthLocation added by XQuartz (http://xquartz.macosforge.org)
XAuthLocation /opt/X11/bin/xauth

This file is no longer used, so the XAuthLocation line is forgotten.
Add it to /etc/ssh/sshd_config, and X11 forwarding will work (it did for
me, anyway).
Post by John Koren
I enabled X11forwarding and included
# XAuthLocation added by XQuartz (http://xquartz.macosforge.org
<http://xquartz.macosforge.org/>)
Host *
XAuthLocation /opt/X11/bin/xauth
in the ssh_config and sshd_config files in /etc/ssh.
Has anybody faced this issue with El Capitan and found a solution to it?
Adding it to sshd_config worked for me, without the Host * line though,
which seems to be a ssh_config thing.
--
Martin
Jeremy Huddleston Sequoia
2015-10-03 15:46:20 UTC
Permalink
Post by Martin Costabel
Post by John Koren
After upgrading to El Capitan, my macs are not able to do x11forwarding.
Same here.
[]
Post by John Koren
I noticed that in El Capitan system-wide ssh configuration files are now
in /etc/ssh.
Xquartz doesn't seem to have noticed this. It creates a file /etc/sshd_config containing the 2 lines
# XAuthLocation added by XQuartz (http://xquartz.macosforge.org)
XAuthLocation /opt/X11/bin/xauth
This file is no longer used, so the XAuthLocation line is forgotten.
Add it to /etc/ssh/sshd_config, and X11 forwarding will work (it did for me, anyway).
Please file a ticket to update the postinstall script.
Post by Martin Costabel
Post by John Koren
I enabled X11forwarding and included
# XAuthLocation added by XQuartz (http://xquartz.macosforge.org
<http://xquartz.macosforge.org/>)
Host *
XAuthLocation /opt/X11/bin/xauth
in the ssh_config and sshd_config files in /etc/ssh.
Has anybody faced this issue with El Capitan and found a solution to it?
Adding it to sshd_config worked for me, without the Host * line though, which seems to be a ssh_config thing.
--
Martin
_______________________________________________
Xquartz-dev mailing list
https://lists.macosforge.org/mailman/listinfo/xquartz-dev
John Koren
2015-10-03 18:27:58 UTC
Permalink
Martin

As I have indicated in my original note, adding xauth paths to
/etc/ssh/ssh_config and /etc/ssh/sshd_config did not solve my issue. I
wonder, could you post your /etc/ssh/ssh_config and /etc/ssh/sshd_config
files? It's possible that I am missing some other detail.

Thanks ---John
Post by Martin Costabel
Post by John Koren
After upgrading to El Capitan, my macs are not able to do x11forwarding.
Same here.
[]
Post by John Koren
I noticed that in El Capitan system-wide ssh configuration files are now
in /etc/ssh.
Xquartz doesn't seem to have noticed this. It creates a file
/etc/sshd_config containing the 2 lines
# XAuthLocation added by XQuartz (http://xquartz.macosforge.org)
XAuthLocation /opt/X11/bin/xauth
This file is no longer used, so the XAuthLocation line is forgotten.
Add it to /etc/ssh/sshd_config, and X11 forwarding will work (it did for
me, anyway).
I enabled X11forwarding and included
Post by John Koren
# XAuthLocation added by XQuartz (http://xquartz.macosforge.org
<http://xquartz.macosforge.org/>)
Host *
XAuthLocation /opt/X11/bin/xauth
in the ssh_config and sshd_config files in /etc/ssh.
Has anybody faced this issue with El Capitan and found a solution to it?
Adding it to sshd_config worked for me, without the Host * line though,
which seems to be a ssh_config thing.
--
Martin
_______________________________________________
Xquartz-dev mailing list
https://lists.macosforge.org/mailman/listinfo/xquartz-dev
John Koren
2015-10-03 22:00:07 UTC
Permalink
I got it working. Turns out I did not have x11forwarding enabled in
sshd_config, only in ssh_config. Enabling x11forwarding in ssh_config only
was sufficient before.

Thanks for your help. It was helpful to know that you got it running.
Post by Martin Costabel
Martin
As I have indicated in my original note, adding xauth paths to
/etc/ssh/ssh_config and /etc/ssh/sshd_config did not solve my issue. I
wonder, could you post your /etc/ssh/ssh_config and /etc/ssh/sshd_config
files? It's possible that I am missing some other detail.
Thanks ---John
Post by Martin Costabel
Post by John Koren
After upgrading to El Capitan, my macs are not able to do x11forwarding.
Same here.
[]
Post by John Koren
I noticed that in El Capitan system-wide ssh configuration files are now
in /etc/ssh.
Xquartz doesn't seem to have noticed this. It creates a file
/etc/sshd_config containing the 2 lines
# XAuthLocation added by XQuartz (http://xquartz.macosforge.org)
XAuthLocation /opt/X11/bin/xauth
This file is no longer used, so the XAuthLocation line is forgotten.
Add it to /etc/ssh/sshd_config, and X11 forwarding will work (it did for
me, anyway).
I enabled X11forwarding and included
Post by John Koren
# XAuthLocation added by XQuartz (http://xquartz.macosforge.org
<http://xquartz.macosforge.org/>)
Host *
XAuthLocation /opt/X11/bin/xauth
in the ssh_config and sshd_config files in /etc/ssh.
Has anybody faced this issue with El Capitan and found a solution to it?
Adding it to sshd_config worked for me, without the Host * line though,
which seems to be a ssh_config thing.
--
Martin
_______________________________________________
Xquartz-dev mailing list
https://lists.macosforge.org/mailman/listinfo/xquartz-dev
Jeremy Huddleston Sequoia
2015-10-04 04:54:03 UTC
Permalink
I got it working. Turns out I did not have x11forwarding enabled in sshd_config, only in ssh_config. Enabling x11forwarding in ssh_config only was sufficient before.
No, you always need to enable support on the server. If the server doesn't support it, there's nothing you can do on the client side to force it.

--Jeremy
Thanks for your help. It was helpful to know that you got it running.
Martin
As I have indicated in my original note, adding xauth paths to /etc/ssh/ssh_config and /etc/ssh/sshd_config did not solve my issue. I wonder, could you post your /etc/ssh/ssh_config and /etc/ssh/sshd_config files? It's possible that I am missing some other detail.
Thanks ---John
After upgrading to El Capitan, my macs are not able to do x11forwarding.
Same here.
[]
I noticed that in El Capitan system-wide ssh configuration files are now
in /etc/ssh.
Xquartz doesn't seem to have noticed this. It creates a file /etc/sshd_config containing the 2 lines
# XAuthLocation added by XQuartz (http://xquartz.macosforge.org)
XAuthLocation /opt/X11/bin/xauth
This file is no longer used, so the XAuthLocation line is forgotten.
Add it to /etc/ssh/sshd_config, and X11 forwarding will work (it did for me, anyway).
I enabled X11forwarding and included
# XAuthLocation added by XQuartz (http://xquartz.macosforge.org
<http://xquartz.macosforge.org/>)
Host *
XAuthLocation /opt/X11/bin/xauth
in the ssh_config and sshd_config files in /etc/ssh.
Has anybody faced this issue with El Capitan and found a solution to it?
Adding it to sshd_config worked for me, without the Host * line though, which seems to be a ssh_config thing.
--
Martin
_______________________________________________
Xquartz-dev mailing list
https://lists.macosforge.org/mailman/listinfo/xquartz-dev
_______________________________________________
Xquartz-dev mailing list
https://lists.macosforge.org/mailman/listinfo/xquartz-dev
Loading...