Operating System - HP-UX
1832880 Members
2389 Online
110048 Solutions
New Discussion

OpenSSH and X11 clients from Reflection X

 
Jdamian
Respected Contributor

OpenSSH and X11 clients from Reflection X

Hi.

I installed OpenSSH on my HP-UX system. I can login in a secure session using "Reflection Host Unix and Digital" but I cannot open a xterm or hpterm session using Reflection X openssh session.

Can anyone help me ?

P.D: I changed "X11Forwarding" item in sshd_config and "ForwardAgent" and "ForwardX11" items in sshd_config but that didn't make work.
7 REPLIES 7
Keith Buck
Respected Contributor

Re: OpenSSH and X11 clients from Reflection X

Did you 'kill -HUP' the sshd to reread the config file?

Try
echo $DISPLAY
and it should return something like localhost:10 if it's working.

I have done this with putty as the Secure Shell client; Reflection X didn't support Secure Shell until recently. So, I'm not sure how you would start debugging it unless you can at least get a login session.

Hope that helps.

-Keith
Wodisch
Honored Contributor

Re: OpenSSH and X11 clients from Reflection X

Hi,

actually I don't remember having problems wiht Reflection/X 7.0 (and that's from 1998 or so)...
Did you change the two server (/etc/opt/ssh/sshd_config)and one client (~/.ssh/config) options?
And stop and start the server (since "kill -1" never worked for me)?
And use the proper command line options for the client?
Like "ssh -f -X -l username targetservername"?

$ cat .ssh/config
ForwardX11 yes
ForwardAgent yes

$ cat /etc/opt/ssh/sshd_config
X11Forwarding yes

HTH,
Wodisch
Bill Hassell
Honored Contributor

Re: OpenSSH and X11 clients from Reflection X

You may want to update to version 10.0 for both Reflection/X as well as Reflection for HP. Version 10 now supports OpenSSH and is quite transparent to use with HP-UX OpenSSH. If you don't have Reflection for HP, you may want to get a copy and look at true HP terminal capabilities rather than the dumb xterm or dtterm clients.

Unlike X11 where the burden of display features (colors, fonts, frames, etc) are on the host and the network, Reflection for HP is a native telnet, OpenSSH and serial clientfor the PC. This means the only traffic to/from the PC and server are the actual characters on the screen. The ability to define new menu items such as color schemes and image/character sizes is very powerful compared to the clumsy X11 methods to customize the window. And for remote support (modems), there is nothing better due to the efficient use of the network.


Bill Hassell, sysadmin
Jdamian
Respected Contributor

Re: OpenSSH and X11 clients from Reflection X

Bill, I use Reflection Suite X 10.0. I also installed Reflection for HP (I use to connect to LAN consoles in order to emulate HP terminal) and Reflection Host Unix and Digital.

Wodish, I changed ssh_config and sshd_config files in host... and used /sbin/init.d/sshd script to stop and restart to read new configuration... but it doesn't work.

My serious doubts are on "command" field of "Connection Settings" in Reflection X.
When telnet protocol is used this field contains hpterm or xterm (or any other X client) launch. ReflectionX opens a telnet connection, sets proper environment and runs "command". it works fine when telnet protocol is used.

I keep the same "command" (/usr/bin/hpterm ...) after changing from telnet to openssh protocol but now no hpterm is displayed.

What is the right command to use in openssh protocol ?

I use Reflection Host Unix and Digital. By default, this opens a single telnet session. I moved "telnet" to "openssh" and it logs in fine. Then I set properly DISPLAY variable and runs any X client with no problems... but, of course, through a non-secure channel.
Keith Buck
Respected Contributor

Re: OpenSSH and X11 clients from Reflection X

Within your command, can you do something like:

echo $DISPLAY>diagfile

This might help to debug the problem. If DISPLAY is not set, then the Xforwarding isn't turned on properly (one side or the other). If it's something like localhost:10, then it's turned on and you might have an xauthority problem or something.

Can you use X11forwarding from other clients? (another HP-UX box, for example)
Jdamian
Respected Contributor

Re: OpenSSH and X11 clients from Reflection X

I selected "Host Response" from ReflectionX Connection menu and "Debug" level in Debug option.

Then I saw the only one command executed was:

export LANG=es_ES.iso88591

Surprise !. This is the first one of three commands executed when I open an HPterm or Xterm client from Reflection X. They are:

export LANG=es_ES.iso88591
stty -istrip cs8 -parenb
/usr/bin/X11/hpterm -ls ....

This is my configuration for TELNET connection. Reflection X allows several commands in Advanced Configuration to execute once the telnet connection is established.

When I select OPENSSH instead of TELNET, those commands of Advanced Config disappeared so I thought they weren't executed once the SSH connection is established... but I realized I was wrong.

Next step has been to remove 2 first entries of Advanced Configuration for TELNET protocol, to allow X11Forwarding in server and deny LocalHost IP in DISPLAY variable and try again...

I works fine.

Now my new problem is to set the environment because if commands supressed aren't executed, I cannot type 8-bit chars.
Jdamian
Respected Contributor

Re: OpenSSH and X11 clients from Reflection X

The mistake was to mark three entries in Reflection X advance Configuration as "Command"-- only the last one had to be marked as "Command".