Operating System - HP-UX
1829726 Members
1768 Online
109992 Solutions
New Discussion

Re: X11 forwarding doesn't work

 
Ionut Grigorescu_2
Super Advisor

X11 forwarding doesn't work

Hello,

I have the following problem:

I'm trying to start an xterm on a HP-UX11.11 box and have this on my Linux box display using a ssh connection, X11Forwarding is set to yes both localy and remote. The error message is X11 connection rejected because of wrong authentication.
X connection to localhost:11.0 broken
I'm able to start xclock but no xterm or hpterm - see the error message above.
Any idea?

Thanks in advance!
If it weren't for STRESS I'd have no energy at all
7 REPLIES 7
Martin Vorlaender
Honored Contributor

Re: X11 forwarding doesn't work

HP-UX? Linux?

I doubt you'll get an answer here, in the OpenVMS forum.

cu,
Martin
Tvs
Regular Advisor

Re: X11 forwarding doesn't work

in linux ,

xhost+

in hp

export DISPLAY=(linux box hostname):0.0 and

xhost+

then try xterm in linux

and in linux if you are configutred iptabkles
#iptables -F
Juan M Leon
Trusted Contributor

Re: X11 forwarding doesn't work

Are you trying to open the xterm in the LAN or VPN across WAN.

if VPN make sure you use the VPN IPaddress assigned to your machine.

hope it helps
Ermin Borovac
Honored Contributor

Re: X11 forwarding doesn't work

On the ssh server insert the following line in sshd_config file (or if it's set to yes set it to no).

X11UseLocalhost no

Don't forget to restart sshd.
Nguyen Anh Tien
Honored Contributor

Re: X11 forwarding doesn't work

try export DISPLAY variable to remote host
for eg
#export $DISPLAY=10.0.91.118:0.0
where 10.0.91.118 is remote host
HP is simple

Re: X11 forwarding doesn't work

Thanks Ermin Borovac!
I had the exact same problem, according to symptoms, and your tip did it for me!

/flix

Re: X11 forwarding doesn't work

Thanks Ermin!

Your tip worked for me too, except that sam doesn't want to run. Authentication failure.
\/ \/ \/ \/ \/ \/ \/ \/
server2 # sam &
[1] 27428
server2 # Xlib: connection to "10.0.22.71:13.0" refused by server
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted

The DISPLAY environment variable is set to "10.0.22.71:13.0", but
the current configuration won't allow sam to run on that display.

The DISPLAY environment variable may be incorrect, or, if you are
running sam remotely, you may need to allow the remote system
to access your local X server by typing

/usr/bin/X11/xhost +server2

on your local machine.
/\ /\ /\ /\ /\ /\

Ionut,

Did any of the tips help? There are no points assigned.

Regards,
Steve