- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- HPUX OpenSSH & X display errors
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2006 03:28 AM
02-13-2006 03:28 AM
I have two problems with x applications while going over ssh. Amy help will be appreciated.
BACKGROUND INFO:
================
ssh server: HP-UX Open SSH 3.91
PC Exceed: Hummingbird Exceed 10
SSHD (ON HPUX) -- (sshd_config)
=========================
X11DisplayOffset 10
X11Forwarding yes
X11UseLocalhost yes
XAuthLocation /usr/bin/X11/xauth
PROBLEMS:
==========
1. I ssh into my own account and `env` shows the following:
DISPLAY=localhost:10.0
HOME=/home/myaccnt
SSH_CLIENT=111.111.111.111 1111 22
SSH_CONNECTION=111.111.111.111 1111 122.22.122.222 22
So, here if i try to start the following applications, xclock, dtterm, gpm they all work and the window pops up on my Exceed (PC) display.
The **** problem **** though comes if I try using xterm or hpterm. These do not work and I get the following error:
X connection to localhost:10.0 broken (explicit kill or server shutdown).
Why is so and how can I solve it.
2. The second question I have I very similar to the above but with a small variance to it.
I can not launch any application if I `su` into root. In such a case I also get the same X connection broken message, as above, even though all my variables are enabled.
How can root run any Xapplications if the above scenario is illegal? PermitRootLogin is set to no in my sshd_config.
Thanks for your help.
Haralambos
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2006 06:18 AM
02-13-2006 06:18 AM
Solutionsame environment I act like this:
keep exceed active, but use putty
(http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html)
to connect from your pc enabling X11 forwading (connection/ssh/tunnel).
If I have to switch user (su) I set and enable the display in the new user (root).
So when I'm normal user I do
# echo xauth -i add `xauth list|tail -1`
# echo export DISPLAY=$DISPLAY
after doing su to root, execute the result of the 2 commands above.
Pablo
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2006 06:29 AM
02-13-2006 06:29 AM
Re: HPUX OpenSSH & X display errors
If yes consider vi $HOME/.Xresources and add
*loginShell : True
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2006 06:32 AM
02-13-2006 06:32 AM
Re: HPUX OpenSSH & X display errors
I have solved the mistery to my first problem; i.e. why some X applications work and some others do not.
The problem is that hpterm and /usr/bin/x11/xterm are linked w/ X11R5 libraries whereas xclock, dtterm & gpm are all linked with X11R6 libs.
There exists a version of xterm that is linked with X11R6 under : /usr/contrib/bin/X11 which does indeed work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2006 09:02 AM
02-13-2006 09:02 AM
Re: HPUX OpenSSH & X display errors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-13-2006 11:03 PM
02-13-2006 11:03 PM
Re: HPUX OpenSSH & X display errors
Problem 2: You need to authorize the root user to use your display. This is usually done with a script like
xauth nextract - $DISPLAY|su - root -c "xauth nmerge -"
Hope this helps,
Armin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-16-2006 07:47 AM
02-16-2006 07:47 AM
Re: HPUX OpenSSH & X display errors
PROBLEM 1
========
As I said earlier, indeed earlier versions of the X libs do not handle X forwarding in some cases; on HPUX OpenSSH. So, either find versions of the X appliaction you want to run that link to X11R6 libs or set the X11UseLocalHost to 'no' in sshd_config. But, be carefull of setting this value to no as remote hosts can connect to your proxy server; option not available on Solaris OpenSSH.
PROBLEM 2
=========
The suggestion from Paolo works great:
# echo xauth -i add `xauth list|tail -1`
# echo export DISPLAY=$DISPLAY
Thanks!
Haralambos