/usr/bin/xauth file /root/.xauthority does not exist

Home Forums Linux Questions & Answers.. General/misc … /usr/bin/xauth file /root/.xauthority does not exist

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3501 Reply
    Humble
    Keymaster

    Indeed it’s pretty clear from the above error is that, the complaint here is there is no xauthority file in the user’s home directory.

    Even though there are a couple of methods to create Xauthority file, one of it is, enabling X11 forwarding in SSH. ssh will automatically set up Xauthority data on the server machine in forwarding mode. So check below:

    Please make sure the below parameters are set as shown below in /etc/ssh/sshd_config file.

    [root@node1 ~]# cat /etc/ssh/sshd_config |grep -i X11
    X11UseLocalhost no
    X11Forwarding yes
    

    It’s also possible to generate this file using xauth command.
    xauth generate $DISPLAY .

    #5771 Reply
    Linsr19
    Guest

    Running on: CentOS Linux 7

    in /etc/ssh/sshd_config

    I commented out these lines and set to:

    X11Forwarding yes
    X11DisplayOffset 10
    X11UseLocalhost no

    after the message didn’t appear anymore

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: /usr/bin/xauth file /root/.xauthority does not exist
Your information: