Bug 94066

Summary: "cannot open display: localhost:10.0" error through ssh after some time
Product: XQuartz Reporter: Leo <le.filippini>
Component: New BugsAssignee: Jeremy Huddleston Sequoia <jeremyhu>
Status: RESOLVED NOTABUG QA Contact: Jeremy Huddleston Sequoia <jeremyhu>
Severity: normal    
Priority: medium    
Version: 2.7.8 (xserver-1.16.4)   
Hardware: x86-64 (AMD64)   
OS: Mac OS X (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: /Users/username/Library/Logs/X11 logs

Description Leo 2016-02-09 18:13:39 UTC
Created attachment 121627 [details]
/Users/username/Library/Logs/X11 logs

I ssh -X to a CentOS 6 machine to do remote work, but I noticed that after some time,
while the ssh connection is still working and I can use the remote shell, the X forwarding seems broken.
When I try to launch a graphical program, say gedit, I get:

Gtk-WARNING **: cannot open display: localhost:10.0

I checked the /Users/username/Library/Logs/X11 and I am including the current one (right now the ssh connection is open but I can't use graphical programs) but I can't see any error.
Comment 1 Jeremy Huddleston Sequoia 2016-02-09 20:22:56 UTC
That's a feature of ssh.

ForwardX11Timeout

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.