
If you would instead like to enable X11 forwarding on an individual user basis, you can use user-specific SSH configuration file (i.e., $HOME/.ssh/config). The above setup enables X11 forwarding system-wide on the server host. $ sudo vi /etc/ssh/sshd_config X11Forwarding yes $ sudo /etc/init.d/sshd restart Enable X11 Forwarding on a Per-User Basis Then, enable X11 forwarding in sshd, and restart sshd as follows.
#Xquartz ssh install#
To install xauth, do the following on a remote server.įor Debian etch (4.0) and earlier, and Ubuntu 7.04 and earlier: $ sudo apt-get install xbase-clientsįor Debian lenny (5.0) and higher, and Ubuntu 7.10 and higher: $ sudo apt-get install xauth Enable X11 Forwarding System-wide xauth is a utility that maintains Xauthority configurations used by server and client for authentication of X11 sessions. However, at least the server host needs to have xauth installed. Server-Side Preparationįor X11 forwarding, the remote server host doesn't need to have a full X11 system installed. If you would like to set up X11 forwarding over SSH, check out this guideline on both server-side and client-side configurations.

SSH has an option to securely tunnel such X11 connections, so that X11 forwarding sessions are encrypted and encapsulated. Behind the scene, the X11 output of a remotely running program is authorized to be sent to localhost via an X11 connection between client and a remote server. X11 forwarding is a mechanism that allows graphical interfaces of X11 programs running on a remote Linux server to be displayed on a local client machine.
