Re: X11 Error: Couldn't find per display information
Re: X11 Error: Couldn't find per display information
- Subject: Re: X11 Error: Couldn't find per display information
- From: Joseph Hartvigsen <email@hidden>
- Date: Wed, 05 Feb 2003 09:40:18 -0700
- Organization: Ceramatec, Inc.
Randy,
Thanks for pointing out the obvious. Jonas pointed out that I didn't
need to change any config files on the Mac to run an X11 client on
the HP and display on the Mac's X11 server but that if I wanted to
run the client on the Mac and display on the HPUX X11 display
server I would need to change the Mac config files. So it just stands
to reason that the HPUX config files were the problem going the
original direction. Here are the instructions for the HP ssh/sshd
configuration for X11 forwarding.
----------
HP-UX Secure Shell A.03.10
Configuring HP-UX Secure Shell
X11 Forwarding
You can modify sshd_config and ssh_config to allow X11 forwarding. Edit
sshd_config to set
the display instance (default = 10). After establishing a Secure Shell
connection to a remote
system, set the DISPLAY environment variable to the following:
<originating machine>:<display instance>.0
<originating machine> is the machine where you initiated the Secure
Shell connection and
<display instance> is the number set in sshd_config. X programs will
display on the
originating machine when started.
CAUTION
The X11UseLocalhost option in sshd_config for IPv6 enabled servers must
be
set to no when using X11 forwarding to an IPv6 enabled server. X11
applications will not connect to the display if the X11UseLocalhost
option is
set to yes .
-------
So on the HP I changed the two config files as follows;
/opt/ssh/etc/ssh_config
ForwardX11 yes
/opt/ssh/etc/sshd_config
X11Forwarding yes
X11DisplayOffset 10
X11UseLocalhost no
Then I went to the /sbin/rc2.d directory and ran ./S393secsh stop
./S393secsh start,
(there is also a S900sshd that doesn't seem to do anything). At this
point from the
Mac a "ssh -X hpux_hostname" login was able to launch X11 clients and
display
on the Mac. The DISPLAY environment variable is set to
hpux_hostname:10.0
for the ssh tunneling rather than the mac_hostname:0.0 used if the
firewall port
6000 is opened.
At this point I changed the two config files on the Mac to the same
values shown
above on the HPUX machine. I tried to connect without restarting the
sshd which
didn't work, so I went into System Preferences > Sharing and turned off
remote
login. For some reason it just waited with a message that it was
stopping. So I
had to open a terminal window and do a "ps -elf | grep ssh " to get the
PID then
manually do a kill -9 on the process. At that point I was able to
restart it from
the System Pref. interface and tunnel in from the HP sucessfully.
Thanks for all the help. I think I understand the setup now.
Joe
Randy Ford wrote:
> Joe,
>
> The HP box probably doesn't have sshd configured for X11 tunneling.
> I'm not sure where it is on HP, but on the Mac the /etc/sshd_config
> configures the sshd server. Try to see how it's configured.
>
> Assuming that the server configuration is the problem, if you can't
> have it changed, then opening up the Mac's firewall and using
> xhost/xauth is the only other path I know.
>
> randy.
>
> On Tuesday, February 4, 2003, at 04:46 PM, Joseph Hartvigsen wrote:
>
> > Randy,
> > I've tried this at the suggestion of Jonas and you, but I still
> > can't get it to work except opening the port in the firewall.
> > When I ssh in to the HPUX box if I do a "env | grep DISP"
> > (in csh) nothing shows up. I also tried "grep DISP .??*"
> > to see if any of my .cshrc, .login, etc. were fiddling with
> > DISPLAY and didn't find anything.
_______________________________________________
x11-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/x11-users
X11 for Mac OS X FAQ: http://developer.apple.com/qa/qa2001/qa1232.html
Report issues, request features, feedback: http://developer.apple.com/bugreporter
Do not post admin requests to the list. They will be ignored.