X Forwarding: Difference between revisions

From Leo's Notes
This page was last edited on 1 September 2019, at 06:21.
initial page
 
m Text replacement - "Category:Linux{{Navbox Linux}}" to "{{Navbox Linux}}Category:Linux"
 
(3 intermediate revisions by the same user not shown)
Line 4: Line 4:
Using OpenSSH, use the {{code|-X}} argument when connecting via {{code|ssh}}.
Using OpenSSH, use the {{code|-X}} argument when connecting via {{code|ssh}}.
Eg:
Eg:
{{highlight|lang=bash|code=
{{highlight|lang=terminal|code=
ssh -X user@remote
ssh -X user@remote
}}
}}
Line 20: Line 20:
The remote host must have the {{code|xorg-x11-xauth}} package installed in order for X forwarding to work.
The remote host must have the {{code|xorg-x11-xauth}} package installed in order for X forwarding to work.


[[Category:Linux]]
 
== See Also ==
* https://major.io/2012/07/14/x-forwarding-over-ssh-woes-display-is-not-set/
 
{{Navbox Linux}}[[Category:Linux]]

Latest revision as of 06:21, 1 September 2019

X forwarding lets X programs executed remotely to be displayed locally.

Enabling X Forwarding

Using OpenSSH, use the -X argument when connecting via ssh. Eg:

ssh -X user@remote

Issues

root@smallbook:/home/leo# ssh -X 10.1.1.113
root@10.1.1.113's password: 
X11 forwarding request failed on channel 0
Last login: Thu Nov 12 02:51:10 2015 from 10.1.1.99
[root@nas ~]# vmware
DISPLAY is not set, unable to open the VMware Workstation user interface.

The remote host must have the xorg-x11-xauth package installed in order for X forwarding to work.


See Also