Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Use Exceed with SSH to access X?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
txGeek
n00b
n00b


Joined: 15 Jun 2002
Posts: 10
Location: Houston, TX

PostPosted: Tue Mar 25, 2003 7:35 pm    Post subject: Use Exceed with SSH to access X? Reply with quote

I have Hummingbird Exceed 7.1 with the Hummingbird security pack installed on my XP laptop. I also have putty which I can use to start an SSH session. I have a Redhat 8.0 system, and a Gentoo 1.4rc3 system. The Redhat system is a default install using Gnome, and the Gentoo system is a "default" install with Gnome without any changes that weren't specified by the install guides.

I can logon to both systems at the console and everything works. When I use Exceed to start an Xsession to the Redhat 8.0 system I am taken to a console where I can manually launch X applications like Gedit, Mozilla, etc.
Xsession Configuration:

[img:c392aaa589]http://www.emcobt.com/attachments/exceedssh1.jpg[/img:c392aaa589]

Xsession with app launched

[img:c392aaa589]http://www.emcobt.com/attachments/exceedssh3.jpg[/img:c392aaa589]


Using the same Xsession configuration, with the IP for my Gentoo system I get the following error:

[img:c392aaa589]http://www.emcobt.com/attachments/exceedssh2.jpg[/img:c392aaa589]

I can manually login via SSH, start Exceed and launch applications after issuing the export DISPLAY command.

[img:c392aaa589]http://www.emcobt.com/attachments/exceedssh4.jpg[/img:c392aaa589]

I have tried a few different suggestions I found in the forums. I uncommented the "* everyone can connect" in /etc/X11/xdm/Xaccess. I comented out the last line in /etc/X11/xdm/xdm-config. I also enabled XDMCP in the /etc/X11/gdm/gdm.conf.

I would rather not use the Putty/Exceed combo. Can anyone tell me what I need to do to get this working? Also, is there a way to launch the entire Gnome desktop this way?
Back to top
View user's profile Send private message
amasidlover
Apprentice
Apprentice


Joined: 16 Jun 2002
Posts: 293
Location: Manchester, UK

PostPosted: Tue Mar 25, 2003 8:35 pm    Post subject: Reply with quote

I use hummingbird exceed in XDMCP mode (there is a separate start up icon) and set up X windows to do XDMCP broadcast. Which means you get a full X session

You have to set up gdm (or whatever display manager you use) to do XDMCP and also change the X server startup options to allow tcp listening.
Back to top
View user's profile Send private message
rtn
Guru
Guru


Joined: 15 Nov 2002
Posts: 427

PostPosted: Tue Mar 25, 2003 8:46 pm    Post subject: Reply with quote

It sounds like your .Xauthority isn't setup for your gentoo host.

--rtn
Back to top
View user's profile Send private message
fifo
Guru
Guru


Joined: 14 Jan 2003
Posts: 437

PostPosted: Tue Mar 25, 2003 10:15 pm    Post subject: Reply with quote

I think xterm should give the name of the display in the "Xt error" line, which suggests to me that maybe your xstart command isn't passing the display parameter correctly. What happens if you use the command
Code:
/usr/X11R6/bin/xterm -display 192.168.0.175:0 &

instead?
Back to top
View user's profile Send private message
txGeek
n00b
n00b


Joined: 15 Jun 2002
Posts: 10
Location: Houston, TX

PostPosted: Thu Mar 27, 2003 3:36 pm    Post subject: Reply with quote

After updating Xaccess to enable CHOOSER BROADCAST I was able to use XDMCP to get to the full Gnome desktop. However, I still cannot simply start an Xsession the way I described above.

Fifo mentioned changing Xstart. What file do I need to edit to change Xstart?
Back to top
View user's profile Send private message
fifo
Guru
Guru


Joined: 14 Jan 2003
Posts: 437

PostPosted: Thu Mar 27, 2003 4:00 pm    Post subject: Reply with quote

I meant the "Command:" setting in the "Xstart Client Startup Application" that you've got a screenshot of above.
Back to top
View user's profile Send private message
txGeek
n00b
n00b


Joined: 15 Jun 2002
Posts: 10
Location: Houston, TX

PostPosted: Thu Mar 27, 2003 5:03 pm    Post subject: Reply with quote

No, after changing that I still get the same error.
Back to top
View user's profile Send private message
pantherace
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 79

PostPosted: Thu Mar 27, 2003 11:39 pm    Post subject: Please note-this does not use an ssh tunnel! Reply with quote

What you are doing by setting the $DISPLAY manually is having X communicate OUTSIDE an ssh tunnel (no encryption in other words)

I don't know if you can do what you want, but if the X client can setup an X connection, it should set the $DISPLAY automatically. (on linux boxes typically localhost(the sshed-into localhost):10 and above) If you manually set the DISPLAY variable you will lose any tunneling provided by ssh.

Unless things have changed in the past 3 years, since I found out by doing this, and mentioning it, then having someone explain this to me (fortunately on a home net, not at that time connected to the internet)
Back to top
View user's profile Send private message
txGeek
n00b
n00b


Joined: 15 Jun 2002
Posts: 10
Location: Houston, TX

PostPosted: Fri Mar 28, 2003 6:19 pm    Post subject: Reply with quote

Which is why I don't want to do it, I would rather use the Exceed SSH tunnel method which I mentioned in the first post that works on the Redhat system. I guess I'll just run a go through all the SSH and X configuration files on both systems to see if I can figure out what is different.

Thank for your help.
Back to top
View user's profile Send private message
pantherace
Tux's lil' helper
Tux's lil' helper


Joined: 18 Mar 2003
Posts: 79

PostPosted: Sat Mar 29, 2003 6:54 pm    Post subject: Gentoo 1.4rc3....disables X forewarding by default Reply with quote

This might be your problem.

In sshd.conf (/etc/ssh, I believe) comment out two lines
host *
(or restrict it to your own hosts)
and
Allow_X11_Forewarding 1
(it's like the 5th line down, and may not be exactly the above)

That should allow X forewarding.

Most distros leave this on by default, but gentoo apparently doesn't.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum