a ssh x11 problem

Kyle Gordon kyle.gordon at absolutestudios.com
Fri Oct 8 14:15:33 UTC 2004


Hi,

ssh should really be setting the DISPLAY variable for you. To set this up,
check the following items.

/etc/ssh/sshd_config on the remote computer should have the following line
present in it somewhere

X11Forwarding yes

If not, then enter the line in and then run the following command as root to
restart your ssh server (don't worry, it won't kill your running
connection)
/etc/init.d/ssh restart

Next, on your local machine, edit ~/.ssh/config, and make sure it has the
following lines present in it as well.

ForwardX11 yes
Compression yes

The ForwardX11 variable informs ssh to always set up X forwarding. You can
skip this if you like, and just use the -X flag when connecting to a remote
machine ie ssh -X username at remote.machine.com, when you want to forward X.

So, that should have you all up and running. If it's another Ubuntu or
X-based machine that your ssh-ing to, then it all should work. You can
check to see if it's worked by running 'echo $DISPLAY' and it should
respond with something like "localhost:11.0" If it doesn't, then it's
usually because xbase-clients isn't installed on the remote machine (maybe
because it's a server or for some other valid reason)

Hope this help, let us know how you get on.

Regards
Kyle



hernandez nestor wrote:

> salutations guys
> I want to make a remote connection to another server
> and use mine as terminal X,
> but after doing the next:
> -------
> ssh nesthor at labci3
> pass...
> setenv DISPLAY myIP:0.0
> xfig &
> ------
> the next message that appears is
> can't open display myIP:0.0
> 
> first of all I typed on another terminal
> xhost labci3
> 
> I don't have any ideas, anything you think it can work
> please tell me
> 
> 
> 
> 
> 
> __________________________________
> Do you Yahoo!?
> Read only the mail you want - Yahoo! Mail SpamGuard.
> http://promotions.yahoo.com/new_mail






More information about the ubuntu-users mailing list