Problem opening X11 display via network connection
Problem opening X11 display via network connection
- Subject: Problem opening X11 display via network connection
- From: email@hidden
- Date: Mon, 21 Jan 2013 15:16:55 -0500
First a word of background. It has probably been ten years since I worked routinely with X11 clients or servers in a network environment. BUT, in trying to help my daughter get set up for working from her apartment while recovering from ACL surgery I decided to set up my own systems to work out any problems before tackling hers. I instantly ran into problems.
My environment: Server system: MacPro running 10.8.2. Xquartz 2.7.4. Client system MacBook Pro, also 10.8.2, also Xquartz 2.7.4. (Yes - I know about X11 reversing the normal terminology, I'll try to keep that straight below.)
Basic apps (xeyes, xcalc, etc.) all run with no problems on each machine locally.
But when I tried to open to a remote login from the laptop to the desktop, and run xeyes on the desktop with the display on the laptop It immediately ran into the infamous: "X11 forwarding request failed on channel 0" error. (For completeness, the command I was issuing was: $ssh -XY <user@name of my desktop>.)
After a lot of Googling around the web, I made the following changes in the sshd_config files on both systems:
Added:
XauthLocation /opt/X11/bin/xauth <- then noticed that this one was already there, so deleted the one I had added.
XauthLocation /usr/X11R6/bin/xauth <- this one is new.
Changed:
X11UseLocalHost from yes to no
X11Forwarding from no to yes
After rebooting both systems (and setting both firewalls to enable remote connections to Xquartz), I can now:
$ssh -XY <user@remotesystemname> and make a connection without getting the initial error about the forwarding request failing
However, when I try
$/usr/X11/bin/xeyes -display 10.0.1.19:1.1 <- reflecting the display back to the laptop's IP address on the local LAN (both systems are on the same LAN)
This request hangs. If I disable the firewall on my laptop, instead of hanging it instantly prints the error: "Can't open display: 10.0.1.19:1.1"
As I noted, the firewalls on both systems were set to enable ssh and enable remote connections to Xquartz.
I've run out of things to Google at this point - can anyone see what I'm doing wrong?
Thanks,
Bill
_______________________________________________
Do not post admin requests to the list. They will be ignored.
X11-users mailing list (email@hidden)
This email sent to email@hidden