X Forwarding

From Leo's Notes
Last edited on 1 September 2019, at 06:21.

X forwarding lets X programs executed remotely to be displayed locally.

Enabling X Forwarding

Using OpenSSH, use the -X argument when connecting via ssh. Eg:

ssh -X user@remote


root@smallbook:/home/leo# ssh -X
root@'s password: 
X11 forwarding request failed on channel 0
Last login: Thu Nov 12 02:51:10 2015 from
[root@nas ~]# vmware
DISPLAY is not set, unable to open the VMware Workstation user interface.

The remote host must have the xorg-x11-xauth package installed in order for X forwarding to work.

See Also