- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- X11 forwarding via SSH
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
Discussions
Discussions
Discussions
Forums
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
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
тАО08-30-2002 07:48 AM
тАО08-30-2002 07:48 AM
I'm trying to enable X11 forwaring with HP Secure Shell. My X server is Windows workstation with SecureCRT and X-Win32.
The only application sending graphics via encrypted channel is xlock. The others (I tried sam, xterm, xomni) fails with the following error message:
Xlib: connection to "localhost:10.0" refused by server
Xlib: SSH gateway: X11 authentication failed.
Error: Can't open display: localhost:10.0
Error: Couldn't find per display information
I tried many variants of X-Win32 parameters with no result. xlcock is working in all cases. I included 127.0.0.1 in X-host list on X server side.
Thanks in advance for any hints!
BR,
Mihail
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 08:13 AM
тАО08-30-2002 08:13 AM
Re: X11 forwarding via SSH
It is usually :0.0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 08:35 AM
тАО08-30-2002 08:35 AM
Re: X11 forwarding via SSH
Tom,
Screen :10.0 is the typical offset for OpenSSH and the HP derivative.
Mihail,
Xauth strikes again. If you are accessing root via sudo or su, then you will need to ensure that HOME and/or XAUTHORITY do not change in the transition. If XAUTHORITY is not set, it will default to $HOME/.Xauthority... and the one you want is in your home directory.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 01:44 PM
тАО08-30-2002 01:44 PM
Re: X11 forwarding via SSH
and then run application.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО08-30-2002 04:14 PM
тАО08-30-2002 04:14 PM
Re: X11 forwarding via SSH
lets start with the simple things first:
did you modify the "ssh_config" on your system and the "sshd_config" on the remote system? One parameter locally, two on the remote side (Get the whole explanation there:
http://www.openssh.org/faq.html#2.7
this does work with HP's ssh, too).
Then you'll need to execute "xauth" to add the "MAGIC-COOKIE" to your session.
But "xclock" is the only of your examples, which does not need FONTS - maybe your problem is hidden there?
Try "xlsfonts" on the remote system's Xserver and then via "ssh" - is the output different?
Just my $0.02,
Wodisch
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 07:11 AM
тАО09-02-2002 07:11 AM
Re: X11 forwarding via SSH
Thanks to Jordan's reply I managed to start encrypted sam. After 'su' to root, $HOME is not defined, command like
export HOME="/home/user"
really helps!
Unfortunately, I do not close the case because xterm and xomni are still not working. I guess they do not know about environment variables.
# xomni
Starting GUI...
Please wait, this may take some time...
Xlib: connection to "localhost:10.0" refused by server
Xlib: SSH gateway: X11 authentication failed.
Wind/U X-toolkit Error: wuDisplay: Can't open display
# xterm
Xlib: connection to "localhost:10.0" refused by server
Xlib: SSH gateway: X11 authentication failed.
Error: Can't open display: localhost:10.0
Error: Couldn't find per display information
Please note that errors are not the same for the two processes. My goal is to force Omniback GUI to run via encrypted channel. The other processes are just tests.
To Wodisch.
Remote X server is X-Win32 under Windows 2000, so I cannot not use UNIX troubleshooting techniques you recommend.
sshd_config on X client side has parameter 'X11Forwarding yes' enabled.
The file .Xauthority is being changed every time I log in via ssh. So xauth mechanism itself seems to be working.
Thanks in advance for more ideas!
BR,
Mihail
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-02-2002 11:26 AM
тАО09-02-2002 11:26 AM
Re: X11 forwarding via SSH
just the day before I tested that with HP's OpenSSH on the HP-UX side, and "CygWin" OpenSSH and Reflection/X on the PC side with a file "$HOME/.ssh/config" like this:
# ssh client config file
ForwardX11 yes
ForwardAgent yes
Protocol 2
# end
and it did work...
So I guess your problem is somewhere with SecureCRT...
Sorry,
Wodisch
PS: could you try cygwin? dll+exe attached...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2002 03:47 AM
тАО09-03-2002 03:47 AM
SolutionTo correct this, modify the sshd_config on the HP-UX side to have the following entry:
X11UseLocalhost no
This will force the remote DISPLAY name to be of the form
ip-address:10. XOpenDisplay() from R5 thinks that this refers to a remote connection and xterm, xclock and other R5 clients will then start to work.
I've had the following connections successfully working:
HP-UX <-> HP-UX
Linux <-> HP-UX
HP-UX <-> Windows NT w/ Putty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО09-03-2002 04:30 AM
тАО09-03-2002 04:30 AM
Re: X11 forwarding via SSH
Now my DISPLAY variable looks like
A.B.C.D:10
where A.B.C.D is the system's real address.
sshd manual tells that setting
DISPLAY to localhost:10 is more secure (X11UseLocalhost yes), but I hope that 'fake display' is not very serious security issue. I guess it's extremely hard to receive A.B.C.D stream to another machine.
To Wodisch: Sorry, I did not test your software. BTW, you archive seems to be corrupted.
BR,
Mihails