Sshd Configure X Forwarding

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

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 ("localhost:10.0") 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