. Advertisement .
. Advertisement .
I am working with programs and getting the error message:
Warning: No xauth data; using fake authentication data for X11 forwarding
Here is the detail of the code that I ran:
Host * ForwardX11Trusted yes ForwardAgend yes ForwardX11 yes
I need an explanation for the problems I’ve encountered. How to fix warning: no xauth data; using fake authentication data for x11 forwarding.?
You have got this error because you did not set up xauth data for your system.
This error is solved only when you obtain a GUI environment on a distant server by letting Ubuntu base on Windows 10 operate ssh -X. To do that, you have to go through a multi-step process:
Step 1: Installing an X server on Windows, such as
sudo apt installto set up
ssh xauth xorgin Ubuntu bash.
Step 2: Access to the folder that includes
ssh_configfile, for example, my file is
Step 3: As an administrator, modify
sudo). Exclude the
#from the lines
ForwardX11Trustedin ssh config, and change the appropriate parameters to
yesas the following:
Step 4: Delete the front hash
Protocol 2, and add a new line at the end of the file to specify the location of the xauth file,
XauthLocation /usr/bin/xauthat the same time. Don’t forget to insert your own path of the xauth file.
Step 5: Now, you have completed modifying the
ssh_configfile, let’s save it before you get out of the editor. Next, you have to access to folder
export DISPLAY=localhost:0to your
.bashrcfile and finally let’s save it.
Step 6: This is the final step. Your duty is restarting your bash shell, then launch the
Xmingapplication and you can operate
ssh -X [email protected]. Finally, let’s delight with the GUI environment.
Additionally, the issue is in Ubuntu which is a subsystem on Windows:
This issue occurred to me because my Fedora system didn’t have a
The following commands were executed on my Fedora (Client Machine) to create one: