Hi

>From man page of ssh ("OpenSSH_3.8p1, SSH protocols 1.5/2.0, OpenSSL 0.9.7d 17 Mar 
>2004")

<snippet>
 X11 and TCP forwarding
   If the ForwardX11 variable is set to ``yes'' (or see the description of
   the -X and -x options described later) and the user is using X11 (the
   DISPLAY environment variable is set), the connection to the X11 display
   is automatically forwarded to the remote side in such a way that any X11
   programs started from the shell (or command) will go through the
   encrypted channel, and the connection to the real X server will be made
   from the local machine.  The user should not manually set DISPLAY.  For-
   warding of X11 connections can be configured on the command line or in
   configuration files.
</snippet>

So basically, you should be running an Xserver on your machine, and the DISPLAY 
environment variable should be set. 
Then, all you have to do is to ssh to remote machine and run your X application (gedit 
in this case).

A few things that might help -

on local machine
localmachine# echo $DISPLAY
<display-variable-settings>    <- this should be set to something like :0.0 , 
localhost:0 or something similar

force ssh to do X11 forwarding
localmachine# ssh -X -l <login> <remote-host> 

on remote machine, after logging in via ssh, check if the DISPLAY variable is set
remotemachine# echo $DISPLAY
<remote-display-settings>     <- this will be something like localhost:12.0 or 
something..

Hope this helps :)

shishir


-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to