Sshd Configure X Forwarding: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 15: Line 15:
=Client=
=Client=


Connect with
Connect with:


  ssh -X user@host
  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: {{Internal|X Applications on Mac|X Applications on Mac}}
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: {{Internal|X Applications on Mac|X Applications on Mac}}

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