RemoteX over SSH

From Tuxation

Revision as of 04:42, 11 January 2008 by Dennis (Talk | contribs)
(diff) ←Older revision | view current revision (diff) | Newer revision→ (diff)

On the Client computer

1. Edit /etc/ssh/ssh_config

Host remote-host-address
    ForwardX11 yes
    ForwardX11Trusted yes

2. Restart SSH server

$ sudo /etc/init.d/ssh restart

3. Add the remote-host on the X11's list of allowed hosts.

$ xhost +remote-host-address

To disallow, just type:

$ xhost -remote-host-address

To connect to the remote computer

1. Start ssh client

$ ssh -l <username> remote-host-address

2. Once logged in, check $DISPLAY is set by ssh automatically.

username@remote-host-address~$ echo $DISPLAY
localhost:10.0

Start an application, it should show up on the client's desktop.

username@remote-host-address~$ kate &
Personal tools