Sshd Configure X Forwarding: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 7: Line 7:
=Server Configuration=
=Server Configuration=


Set  
Set
 
X11Forwarding yes
 
in /etc/ssh/sshd_config and restart the sshd server.


=Client=
=Client=

Revision as of 00:43, 12 July 2017

Internal

Overview

Server Configuration

Set

X11Forwarding yes

in /etc/ssh/sshd_config and restart the sshd server.

Client

Connect with

ssh -X user@host

This will set the DISPLAY variable appropriately and ssh will transparently forward X protocol requests back to the X server running on the host connection was initiated from. Note that an X server has to run and be configured to accept connections. How to do this on Mac is described here:

X Applications on Mac