On 12/21/06, Ori Idan <[EMAIL PROTECTED]> wrote:
I have gdm running on the remote machine.
Are you even listening? Having 'gdm' on the remote machine has nothing to do with your ability to run a *single* program (e.g. a "simple gedit") from the remote machine. A display manager initiates entire sessions (that is, including the panel, the window manager ...). For example, if your local machine doesn't have GNOME or KDE installed and you want to run them from the remote machine, you'd use a display manager (gdm). If you already have a session running on the local machine and just want that remote Gedit to run, then 'gdm' has nothing to do with it. I tried logging in to a different user, not the current loged in user.
I also tried simple ssh -X and tried to start a simple program like gedit. I got a "cannot open display" error (I made sure the DISPLAY variable is set to my IP).
If you use the SSH X forwarding feature (which you are wholeheartedly recommended), you must make sure that your remote machine's sshd_config file allows X forwarding. In the OpenSSH installation, it's disabled by default. Afterwards, do *not* change your DISPLAY environment variable; ssh will set it to what it should be. If you want to make sure the SSH X forwarding actually happens, you might consider running 'ssh' with the verbose option.