Remote X over ssh
Shawn Tayler
stayler
Wed Jan 5 22:45:20 PST 2005
On Wed, 5 Jan 2005 10:03:30 -0800 Bill Campbell <linux-sxs at celestial.com>
exclaimed:
> If you're seeing a DISPLAY=:0.0, it's not being set by the sshd process
> on the remote machine. The sshd DISPLAY will be either something like
> localhost:10.0 or $FQDN.10.0 depending on the setting of the sshd_config
> ``X11UseLocalhost'' line (Linux seems happy with localhost:xx.0 while
> some OS's require a real host name).
>
> You have to have ``X11Forwarding yes'' in the sshd_config file on the
> remote system, and either use the ``-X'' option in the ssh command or
> have``ForwardX11 yes'' in the ssh_config file on the client machine.
>
> BTW: the command ``sshd -X -f $system xterm'' should start an xterm on
> the remote machine where the ``-f'' option automatically deletes the
> local ssh process. I use this on a LAN connection, but run the xterm on
> my local machine when going across slower links using this to start it:
>
> xterm -e ssh -l $user $system &
>
> >I tried startx and kdeinit says it can't start either.
>
> You probably don't want to use startx on the remote machine as that will
> give you two window managers, one on your local box, and one on the
> remote.
I tried each of these and the appropriate lines are enetered in ssh_config
and sshd_config. I did get an xterm on the remote machine, ie. bash shell
in an X window. So I can then simply run X apps from this xterm?
Shawn
More information about the Linux-users
mailing list