Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask question.(5)

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

ITtutoria

ITtutoria Logo ITtutoria Logo

ITtutoria Navigation

  • Python
  • Java
  • Reactjs
  • JavaScript
  • R
  • PySpark
  • MYSQL
  • Pandas
  • QA
  • C++
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA
Home/ Questions/Why does the warning: ''no xauth data; using fake authentication data for x11 forwarding'' error occur?
Next
Answered
Helena Lee
  • 11
Helena Lee
Asked: May 18, 20222022-05-18T20:37:44+00:00 2022-05-18T20:37:44+00:00In: Programs

Why does the warning: ”no xauth data; using fake authentication data for x11 forwarding” error occur?

  • 11

. Advertisement .

..3..

. Advertisement .

..4..

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.?

no xauth data
  • 2 2 Answers
  • 594 Views
  • 0 Followers
  • 0
Answer
Share
  • Facebook
  • Report

2 Answers

  • Voted
  • Oldest
  • Recent
  • Random
  1. Best Answer
    lyytutoria Expert
    2022-06-27T01:43:31+00:00Added an answer on June 27, 2022 at 1:43 am

    The cause:

    You have got this error because you did not set up xauth data for your system.

    Solution:

    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 Xming and using sudo apt install to set up ssh xauth xorg in Ubuntu bash.

    sudo apt install ssh xauth xorg

    Step 2: Access to the folder that includes ssh_config file, for example, my file is /etc/ssh.

    Step 3: As an administrator, modify ssh config (USE sudo). Exclude the # from the lines ForwardAgent, ForwardX11, and ForwardX11Trusted in ssh config, and change the appropriate parameters to yes as the following:

    # /etc/ssh/ssh_config
    
    Host *
    ForwardAgent yes
    ForwardX11 yes
    ForwardX11Trusted yes

    Step 4: Delete the front hash # from the ssh_config file before Port 22 and Protocol 2, and add a new line at the end of the file to specify the location of the xauth file, XauthLocation /usr/bin/xauth at the same time. Don’t forget to insert your own path of the xauth file.

    # /etc/ssh/ssh_config
    
    # IdentifyFile ...
    Port 22
    Protocol 2
    # Cipher 3des
    # ...
    # ...
    ...
    ...
    GSSAPIDelegateCredentials no
    XauthLocation /usr/bin/xauth

    Step 5: Now, you have completed modifying the ssh_config file, let’s save it before you get out of the editor. Next, you have to access to folder ~ or $HOME, add export DISPLAY=localhost:0 to your .bashrc file and finally let’s save it.

    # ~/.bashrc
    ...
    ...
    export DISPLAY=localhost:0

    Step 6: This is the final step. Your duty is restarting your bash shell, then launch the Xming application and you can operate ssh -X [email protected]. Finally, let’s delight with the GUI environment.

    ssh -X [email protected]

    Additionally, the issue is in Ubuntu which is a subsystem on Windows:

    https://gist.github.com/DestinyOne/f236f71b9cdecd349507dfe90ebae776
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report
  2. Manon Besse
    2022-05-25T21:07:21+00:00Added an answer on May 25, 2022 at 9:07 pm

    This issue occurred to me because my Fedora system didn’t have a ~/.Xauthority file.

    The following commands were executed on my Fedora (Client Machine) to create one:

    xauth add :0 . `mcookie`
    • 18
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

Sidebar

Ask A Question
  • How to Split String by space in C++
  • How To Convert A Pandas DataFrame Column To A List
  • How to Replace Multiple Characters in A String in Python?
  • How To Remove Special Characters From String Python

Explore

  • Home
  • Tutorial

Footer

ITtutoria

ITtutoria

This website is user friendly and will facilitate transferring knowledge. It would be useful for a self-initiated learning process.

@ ITTutoria Co Ltd.

Tutorial

  • Home
  • Python
  • Science
  • Java
  • JavaScript
  • Reactjs
  • Nodejs
  • Tools
  • QA

Legal Stuff

  • About Us
  • Terms of Use
  • Privacy Policy
  • Contact Us

DMCA.com Protection Status

Help

  • Knowledge Base
  • Support

Follow

© 2022 Ittutoria. All Rights Reserved.

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.