Sshd Configure X Forwarding: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * OpenSSH Server Operations =Overview= =Server Configuration= Set =Client= Connect with ssh -X user@host This wil...")
 
 
(6 intermediate revisions by the same user not shown)
Line 6: Line 6:


=Server Configuration=
=Server Configuration=
<span id='X11Forwarding'></span>
Set


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


=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 [[]].
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: {{Internal|X Applications on Mac|X Applications on Mac}}

Latest revision as of 00:45, 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 ("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