Operating System - HP-UX
1824927 Members
3974 Online
109677 Solutions
New Discussion юеВ

X11 need to be ebable in sshd fo HP UX

 
SOLVED
Go to solution
Harikrishnan L
Frequent Advisor

X11 need to be ebable in sshd fo HP UX

Hi Folks,

I not able to login to the server using x manager.

my server settings are below.

# pwd
/opt/ssh/src/ssh

#vi sshd_config

#X11Forwarding no
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes


# whereis ssh
ssh: /usr/bin/ssh /opt/ssh/bin/ssh /opt/ssh/share/man/man1/ssh.1
#
Kindly help me to use X11 Forwarding.
12 REPLIES 12
Kapil Jha
Honored Contributor
Solution

Re: X11 need to be ebable in sshd fo HP UX

What exactly you doing what X11 software u using.
what error?
no infomation how can anyone help?

i would do is
export DISPLAY=IP.WIndow.desktop.Mahine:0.0

then start the X11 software and run any command using ssh.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Steven Schweda
Honored Contributor

Re: X11 need to be ebable in sshd fo HP UX

> Kindly help me to use X11 Forwarding.

Kindly explain what the problem is with X
forwarding.

> I not able to login to the server using x
> manager.

"I am not able" is not a useful problem
description. It does not say what you did.
It does not say what happened when you did
it.

It might help if you revealed what the SSH/X
client system is.

> [...] HP UX [...]

Often informative:

uname -a
ssh -V


> i would do is
> export DISPLAY=IP.WIndow.desktop.Mahine:0.0
>
> then start the X11 software and run any
> command using ssh.

And this would avoid all that pesky
encryption for the X traffic on your network.
If you leave the X stuff all unencrypted,
then why bother using SSH at all?
Harikrishnan L
Frequent Advisor

Re: X11 need to be ebable in sshd fo HP UX

HI ALL,

Thanks for your replay.

I am using X-Manager tool to connect the server for client access. I am getting only the blank page while trying with x-manager.

X-Manager using X11 protocal and 177 port

# uname -a
HP-UX maa2tamh B.11.31 U ia64 0066831140 unlimited-user license
# ssh -V
OpenSSH_5.1p1+sftpfilecontrol-v1.2-hpn13v5, OpenSSL 0.9.7m 23 Feb 2007
HP-UX Secure Shell-A.05.10.026, HP-UX Secure Shell version
#
Steven Schweda
Honored Contributor

Re: X11 need to be ebable in sshd fo HP UX

> I am using X-Manager [...]

I know nothing about Xmanager, but ...

> [...] to connect the server [...]

Connect how, exactly?

I gather that Xmanager is an X server for
Windows. You seem to have it running.

Did you run anything on the HP-UX system
which might try to display something back on
the Windows+Xmanager system?

Have you seen this:?

http://www.netsarang.com/tutorial/xmanager/list
Kapil Jha
Honored Contributor

Re: X11 need to be ebable in sshd fo HP UX

Still not clear how u doing ur stuff.....
a I said did you exported the DISPLAY with correct IP.

do Xstart
put various inputs than if some error comes let us know.
enter hostname,protocol,username,passwd,the command you want to run as X windows.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Harikrishnan L
Frequent Advisor

Re: X11 need to be ebable in sshd fo HP UX

Hi friends,

I am new to HP-UX i have attached teh screen shot of xstart adn xmanager form windows system.

Xmanager was worked for me before installing ssh. after installing the ssh is not working.

The same problem has been solved in some other HP-UX machines by changing the sshd_config file X11forwarding yes line.

Harikrishnan L
Frequent Advisor

Re: X11 need to be ebable in sshd fo HP UX

attachment 2
Harikrishnan L
Frequent Advisor

Re: X11 need to be ebable in sshd fo HP UX

Attachment 3
Kapil Jha
Honored Contributor

Re: X11 need to be ebable in sshd fo HP UX

My server has same setting as your what happens when u run
/usr/bin/X11/xclock from xstart does it starts cause bdf would not show any output from xstart.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Kapil Jha
Honored Contributor

Re: X11 need to be ebable in sshd fo HP UX

my server did not gave bdf in X11 :) may be I did not wait

well
only difference I see is
X11UseLocalhost no

below is the lines from man page
***************
X11UseLocalhost Specifies whether sshd should bind the X11 forwarding server to the loopback address or to the wildcard address. By default,sshd binds the forwarding server to the loopback address and sets the hostname part of the DISPLAY environment variable to ``localhost''. This prevents remote hosts from connecting to the proxy display. However, some older X11 clients may not function with this configuration. X11UseLocalhost may be set to ``no'' to specify that the forwarding server should be bound to the wildcard address. The argument must be ``yes'' or ``no''. The default is ``yes''.
****************

Can you check other systems for this parameter.

BR,
Kapil+
I am in this small bowl, I wane see the real world......
Horia Chirculescu
Honored Contributor

Re: X11 need to be ebable in sshd fo HP UX

>X-Manager using X11 protocal and 177 port

From your picture I understand that the X Manager which is an Xserver, uses the default 6000 port not 177. So if you have any firewall blocking port 6000 you should unblock it in order to be able to make a connection.

You can test that your connection is allowed like this:

ssh to your HP-UX server.

telnet station_ip_address_with_Xmanager 6000

If you get a connection it ok, no firewall blocking, and your Xserver is running fine.

The procedure to get a display on your windows station is like this:

ssh to your HP-UX server.

export DISPLAY=station_ip_address_with_Xmanager:0.0

then fire up some x application like xclock to verify that things are running.

This is independent of your connection type to the HP-UX server, meaning that you can connect through rsh, telnet, ssh or whatever you would like/permit to and it works.

If you are using putty, you can automate setting of DISPLAY variable.

In this thread:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1412280

Viktor Balogh has published a link from where you can setup putty to achieve this.


Horia.
Best regards from Romania,
Horia.
Steven Schweda
Honored Contributor

Re: X11 need to be ebable in sshd fo HP UX

I still know nothing, but ...

What are you trying to do?

354516.jpg shows "Remote Execution" >
"Execution Command" as "bdf". "bdf" is not
an X application. Have you tried anything
like, say, "xterm"?

> The same problem has been solved in some
> other HP-UX machines [...]

You have "bdf" there on _other_ systems?

354517.jpg shows the output from "bdf". I
don't know what else you expected to happen.


> The procedure to get a display on your
> windows station is like this:
>
> ssh to your HP-UX server.
>
> export DISPLAY=station_ip_address_with_Xmanager:0.0

Does _everyone_ use SSH to connect to a
remote host and then bypass all the SSH
encryption for his X traffic? Yikes.