Operating System - HP-UX
1834007 Members
1773 Online
110063 Solutions
New Discussion

DISPLAY problem with openssh 3.4p1 on HP UX 11.0

 
Anand Vora
Occasional Advisor

DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Hi,

I am desperately trying to resolve my DISPLAY problem. The vital stats are --

SSH Client on Windows XP: PuTTY 0.54
Settings on PuTTY: Protocl is to "2". X11 Forwarding is enabled. Authentication protocol is set to 3DES. X Display location is "localhost:0"

I am running Exceed in passive mode on my Windows desktop

My HP UX 11.0 is running openssh 3.4p1. The sshd_config has been set for X11Forwarding to YES, X11UseLocalhost to YES, Protocol to 2. On doing echo $DISPLAY, it shows up localhost:11.0

When I run xterm on my unix prompt, I get the error message --

Xlib: connection to "localhost:11.0" refused by server
Xlib: PuTTY X11 proxy: wrong authentication protocol attempted
Error: Can't open display: localhost:11.0
Error: Couldn't find per display information

I cant figure out what is going wrong. Please help.

Thanks,

Anand
15 REPLIES 15
Shaikh Imran
Honored Contributor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Hi,
On server side do
#xhost+
On client where you want the display do
#export DISPLAY=:0.0


Regards,

I'll sleep when i am dead.
Fabio Ettore
Honored Contributor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Hi Anand,

I cannot say what is going wrong. Anyway I notice a difference between X Display location is "localhost:0" and Error: Can't open display: localhost:11.0.
Then try suggestion by Shaik with export DISPLAY and hope that helps you.

Best regards,
Ettore
WISH? IMPROVEMENT!
Anand Vora
Occasional Advisor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Hi,

On doing "xhost +" I get the message: X connection to localhost:10.75 broken (explicit kill or server shutdown)

Anand
Jeroen Peereboom
Honored Contributor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Maybe you need to change an Exceed Security setting: Host Access Control List: File, and add 127.0.0.1.

I do not understand your putty setting 'protocol 2'. Do you refer to the Authentication tab?

Exceed: passive mode, Windows mode: multiple.

JP
Anand Vora
Occasional Advisor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Ok.. probably I was not clear enough.

(1) the localhost:0 setting was on my PuTTY tab "tunnel"

(2) the protocol 2 setting is on my PuTTY tab "SSH" as well as in my sshd_config. Which is I intend to use SSH 2.

(3) Exceed is in passive mode and set for multiple windows.

After Sheikh's reco, I set my PuTTY X Location to :0 However on my unix m/c, the DISPLAY is still set to localhost:10.0.

On trying to do xhost + it get the message of explicit termination etc..

Thanks
SAHA
Honored Contributor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Did you enable X windows tunnelling in your ssh client setup GUI ?

Thanks,
You must PASS failure on way to success !!!
Anand Vora
Occasional Advisor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0


Some more findings..

I established ssh session. Then I opened a telnet session in which I did..

netstat -a |grep localhost|grep 60

It showed up..
tcp 0 0 localhost.6010 *.* LISTEN

Does this means that it is X11 is not getting tunneled in ssh?

Anand

Shaikh Imran
Honored Contributor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Hi,
By any chance are you getting authenticated by the firewall to get the access to the server ?
If yes pls try w/o firewall.
Also have you tried with telnet.

Regards,

I'll sleep when i am dead.
Shaikh Imran
Honored Contributor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Hi,
Test this link:
http://www.eos.ncsu.edu/remoteaccess/wincommonerrors.html

Regards,

I'll sleep when i am dead.
Anand Vora
Occasional Advisor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Hi Shaikh,

I have to admit, I am behind firewall which I can't disable or short circuit.

However with netstat I can see that my desktop IP is getting forwarded to the unix session. the ssh connection is getting established on my static IP.

What I also see now is that my unix m/c is trying to send packets to 6010 port (x11) port, which confirms my earlier finding with netstat. X11 is not getting tunnel in ssh, though all the settings seem good to me.

Thanks,
Jeroen Peereboom
Honored Contributor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Anand,

did you check the security tab on putty, for Host Access Control?

Don't touch your DISPLAY variable, it is set automatically when logging in using putty. (So don't telnet or su because you will loose your DISPLAY setting).

I'm worried about the message:
"Xlib: PuTTY X11 proxy: wrong authentication protocol attempted"

It suggests you have choosen to use a proxy within putty. Did you? Where did you set 'Authentication protocol: 3DES' in putty?

JP
Anand Vora
Occasional Advisor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Jeroen,

I am not using proxy in PuTTY (connection->proxy->none). PuTTY is picking encryption from connection->SSH->encryption options.

Thanks,
Jeroen Peereboom
Honored Contributor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Anand,

I see.
I have a list:
AES (SSH2 only)
Blowfish
3DES
-- warn below here --
DES

If you only have 3DES, expand the list.

Still wondering about the message...
JP
Anand Vora
Occasional Advisor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Hurray! Solved the problem.

Basically all the setting were good. The problem was that xterm was linked to X11R5 libs. And xhost, xauth was linked to X11R6 libs. I found the correct xterm under /usr/contrib/bin/X11 with which it worked.

Thanks to all of you for chipping in your valuable time. Have a nice day

Thanks.
Bharat Katkar
Honored Contributor

Re: DISPLAY problem with openssh 3.4p1 on HP UX 11.0

Great Job Anand...
Well you use to come to UWB..remember me?
If so where are U now!!
Regards,



No points please
You need to know a lot to actually know how little you know