Operating System - HP-UX
1834811 Members
2499 Online
110070 Solutions
New Discussion

Re: OpenSSH - X Connection broken

 
Paul Torgerson
Occasional Advisor

OpenSSH - X Connection broken

I have installed/configured v3.1p1 on all our hosts (11.0/11.11)

I am using forwarding X11. All works fine for my 'normal' user. X-apps execute properly. However, when I 'su' to root, I receive the following:

X connection to localhost:10.0 broken (explicit kill or server shutdown)

Dug around the docs/forums/OpenSSH site but not finding an 'obvious' answer.

Any help would be fantastic!

Thank you.

Paul
6 REPLIES 6
Paul Torgerson
Occasional Advisor

Re: OpenSSH - X Connection broken

Forgot to mention that my display variable is the same after I su as before.

Do not have this problem w/ normal remsh/rlogin.

Paul Torgerson
Occasional Advisor

Re: OpenSSH - X Connection broken

Well, I kept looking around and found that I was not setting XAUTHORITY in my .profile. Once I set that to $HOME/.Xauthority, my X-apps ran find when I was 'su'd to root.

Sounds like I need to learn a few things...

:)

Paul
Jordan Bean
Honored Contributor

Re: OpenSSH - X Connection broken

I just upgraded to from 3.0.2 to 3.1p1 on HPUX 11.00... sam and the sw utilities work fine, but anything else, specifically Legato Networker Admin (nwadmin) and the Ignite utilities are bombing with this error:

X connection to localhost:10.0 broken (explicit kill or server shutdown).

I've ensure that DISPLAY and XAUTHORITY are correct and exported.

Any other ideas?
Paul Torgerson
Occasional Advisor

Re: OpenSSH - X Connection broken

Set 'X11UseLocalhost no' in sshd_config.
Jordan Bean
Honored Contributor

Re: OpenSSH - X Connection broken

Thanks Paul. A new parameter I didn't know about; It wasn't in the config file which was preserved from 3.0.2. Is this new in 3.1?
Paul Torgerson
Occasional Advisor

Re: OpenSSH - X Connection broken

I found that bit-O-info on:
http://www.openssh.org/faq.html

"3.12 - I upgraded to OpenSSH 3.1 and X11 forwarding stopped working.
Starting with OpenSSH 3.1, the sshd x11 forwarding server listens on localhost by default; see the sshd X11UseLocalhost option to revert to prior behaviour if your older X11 clients do not function with this configuration.
In general, X11 clients using X11 R6 should work with the default setting. Some vendors, including HP, ship X11 clients with R6 and R5 libs, so some clients will work, and others will not work. This is true for HP-UX 11.X.

"