Jump to content

Problem running X app with SSH


MottS
 Share

Recommended Posts

Hi

 

I have 2 computers. 1 dual P200 that shares the net to my main computer. SSHD runs on the dual P200 and I can login to it with my main computer. I can do whatever I want in the console but I cannot start X app like 'drakconf' or 'mozilla'.

 

I have 'X11Forwarding yes' in /etc/ssh/sshd_config

I also have 'ForwardX11 yes' in /etc/ssh/ssh_config

 

I also tryed to start the session this way 'ssh -X -l username remotemachine' but that didn't work.

 

Any idea ?

 

MOttS

Link to comment
Share on other sites

what does it say when you try to execute the programs? what error?  I'm assuming you have X installed and running on both machines correct?

 

It depend of the app. If I start 'drakconf' I get

[gd@localhost gd]$ ssh -X -l gd 192.168.1.1

gd@192.168.1.1's password: 

[gd@localhost gd]$ drakconf

Cannot be run in console mode.

Compilation failed in require at /usr/lib/libDrakX/my_gtk.pm line 17.

BEGIN failed--compilation aborted at /usr/lib/libDrakX/my_gtk.pm line 17.

Compilation failed in require at /usr/bin/drakconf line 37.

BEGIN failed--compilation aborted at /usr/bin/drakconf line 37.

 

Now if I type 'harddrake2' I get:

[root@localhost gd]# harddrake2 

Cannot be run in console mode.

Compilation failed in require at /usr/lib/libDrakX/harddrake/ui.pm line 8.

BEGIN failed--compilation aborted at /usr/lib/libDrakX/harddrake/ui.pm line 8.

Compilation failed in require at /usr/sbin/harddrake2 line 5.

BEGIN failed--compilation aborted at /usr/sbin/harddrake2 line 5.

 

If I type 'drakfirewall', 'xf86config' and some others, the console app is started.

 

try:

ssh -n host mozilla &

 

and if it stills not working, then check your host's ssh_config has the "ForwardX11" parameter enabled

 

another try is 'xhost +host'

 

Just some thoughts.

 

the 'xhost +host' doesn't work either and 'ssh -h host mozilla &' gives nothing.. I'm left if MY local console and mozilla doesn't start.

 

:-(

 

Any idea ?

 

MOttS

Link to comment
Share on other sites

I use Shorewall as a firewall. I opened ports 6000, 6010 and 7100 (check in /etc/services for info) via the MCC and restarted shorewall and sshd. Still no luck

 

I started to use another tool --> TightVNC. I already know how to use it so it's simple for me.

 

However if someone have another idea I'd like to try it ..

 

Thx

 

MottS

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...