Questions tagged [x11-forwarding]

X11 forwarding means tunneling traffic of X server and X client through a secure channel to avoid anyone from intercepting the traffic. Most often the forwarding is done through a ssh tunnel.

When Xforwarding has been enabled in the ssh server configuration, an ssh connection capable of handling X traffic can be taken with commands ssh -X hostname or ssh -Y hostname.

X11 forwarding has some security implications. The remote server has ability to control the X environment in the local machine. If the remote host is malicious, it is possible to spy on local users session. In ssh the -X flag treats the remote client as untrusted and runs X11 forwarding with SECURITY extensions enabled. These prevent the most serious snooping such as key logging and taking screenshots. However, controlling X window environment is still possible. -Y flag treats the remote client as trusted which allows full control of the local X window environment. This option should be used even more cautiously and is necessary only in some specific cases such as running screencast programs or macro recorders.

227 questions
182
votes
23 answers

How to set up working X11 forwarding on WSL2

When moving from WSL1 to WSL2 many things change; apparently this applies to X11 forwarding as well. What steps do I need to make in order to use X11 forwarding with WSL2 on Windows 10 as I did with WSL1?
whme
  • 4,908
  • 5
  • 15
  • 28
58
votes
6 answers

X11 forwarding request failed on channel 0

When I do "ssh -X abcserver", I got message "X11 forwarding request failed on channel 0". I checked online and it was suggested to solve it by switching "X11UseLocalhost no" to "X11UseLocalhost yes". However, both my manager and I don't have this…
David Z
  • 6,641
  • 11
  • 50
  • 101
45
votes
4 answers

Unable to open X display when trying to run google-chrome on Centos (Rhel 7.5)

I need to run Google Chrome remotely on a virtual machine using SSH. I do not want xforwarding - I want to utilize the GPU available on the vm. When I try running google-chrome I get following…
Liplattaa
  • 1,231
  • 2
  • 11
  • 10
44
votes
4 answers

Run X application in a Docker container reliably on a server connected via SSH without "--net host"

Without a Docker container, it is straightforward to run an X11 program on a remote server using the SSH X11 forwarding (ssh -X). I have tried to get the same thing working when the application runs inside a Docker container on a server. When…
rubund
  • 7,603
  • 3
  • 15
  • 24
33
votes
5 answers

How to enable X11 forwarding in PyCharm SSH session?

The Question I'm trying to enable X11 forwarding through the PyCharm SSH Terminal which can be executed via "Tools -> Start SSH session..." Unfortunately, It seems there is no way of specifying the flags like I would do in my shell for enabling…
Gengiolo
  • 603
  • 1
  • 6
  • 14
33
votes
4 answers

X11 connection rejected because of wrong authentication

I am getting a error while accessing the firefox using X11Forwarding. [root@station2 ~]# firefox KiTTY X11 proxy: wrong authorisation protocol attemptedKiTTY X11 proxy: wrong authorisation protocol attemptedError: cannot open display:…
Nataraj
  • 852
  • 2
  • 14
  • 29
24
votes
5 answers

Error: cannot open display: localhost:0.0 - trying to open Firefox from CentOS 6.2 64bit and display on Win7

I am on a Windows7 machine and I'm trying to get firefox to open on the centOS machine, but be displayed on my current screen. When typing firefox in terminal, I am getting the following error: Error: cannot open display: localhost:0.0 To setup…
SaiyanGirl
  • 16,376
  • 11
  • 41
  • 57
21
votes
6 answers

Xt error: Can't open display, if using default DISPLAY

Overview I'm attempting to get XQuartz to work on OSX so I can do X11 forwarding via Docker. I'm following the instructions here. I believe my question may be answered by just the first part, but just in case (to avoid the XY problem), I've provided…
Claudiu
  • 224,032
  • 165
  • 485
  • 680
20
votes
5 answers

X11 forwarding of a GUI app running in docker

First off: I have read the answers to similar questions on SO, but none of them worked. IMPORTANT NOTE: The answer below is still valid, but maybe jump to the end for an alternative. The situation: App with GUI is running in a docker container…
Lazarus535
  • 1,158
  • 1
  • 8
  • 23
19
votes
4 answers

Warning: No xauth data; using fake authentication data for X11 forwarding

I have an unfortunate problem when making ssh connections from Fedora 23 to Centos 7. The commands ssh -X user@centos7 and ssh -Y user@centos7 both print Warning: No xauth data; using fake authentication data for X11 forwarding. Googling shows to…
A. Koenig
  • 191
  • 1
  • 1
  • 4
18
votes
5 answers

x11 forwarding with paramiko

I'm trying to run a command with paramiko that should be able to open an X window. The script I'm using would something as follows: import paramiko ssh_client =…
jcollado
  • 39,419
  • 8
  • 102
  • 133
16
votes
1 answer

Where is rendering performed when using X11 forwarding with SSH?

When ssh'ing in to a remote system (such as a cluster with substantial compute power and/or graphics harware) with X11 forwarding (eg, using ssh -X or -Y), where is the graphics rendering done? How would you run a graphics-intensive workload in…
aze
  • 832
  • 4
  • 12
  • 34
15
votes
5 answers

ssh X11 forwarding won't work

I have been trying to get X11 port forwarding to work from my laptop. I can't figure out why it won't work. I get this message when I try to run xterm: X11 connection rejected because of wrong authentication. xterm Xt error: Can't open display:…
digitaleagle
  • 854
  • 1
  • 9
  • 15
15
votes
3 answers

Running GUI from a container on a mac resolve in "libGL error: No matching fbConfigs or visuals found"

I'm trying to run a container based on ubuntu:15.10 from my Mac. I run the following command docker run -i -v /tmp/.X11-unix:/tmp/. -e DISPLAY=192.168.0.104:0 --privileged mycompany/mycontainer (The IP was taken from my en0: inet using…
Ika
  • 1,456
  • 1
  • 15
  • 24
12
votes
1 answer

Wrong keyboard layout when using mobaxterm x11 forwarding

I am using MobaXTerm to connect to a remote machine and thus uses its x11 forwarding to use graphic applications. However, despite the fact that all my locales are well set (France),all the application used with the X server are using a qwerty…
linSESH
  • 388
  • 3
  • 12
1
2 3
15 16