Questions tagged [xauth]

For questions about X11 authentication.

52 questions
71
votes
9 answers

"su" with error "X11 connection rejected because of wrong authentication"

As root, I'm connecting to a remote host to execute a command. Only "standarduser" has the appropriate id-file and correct .ssh/config, so I'm switching the user first: su standarduser -c 'ssh -x remotehost ./remotecommand' The command works fine,…
Stefan M
  • 1,606
  • 1
  • 12
  • 20
52
votes
10 answers

"Invalid MIT-MAGIC-COOKIE-1 key" when trying to run program remotely

I am attempting to run an application (ParaView) in client-server mode with its graphics rendering being done on the remote (server) end. I am using SSH as my means of connecting to the server, but do not wish to use X-forwarding since it slows down…
CS6394
  • 521
  • 1
  • 4
  • 3
50
votes
5 answers

Why am I getting this message from xauth: "timeout in locking authority file /home//.Xauthority"?

While attempting to SSH into a host I received the following message from xauth: /usr/bin/xauth: timeout in locking authority file /home/sam/.Xauthority NOTE: I was trying to remote display an X11 GUI via an SSH connection so I needed xauth to be…
slm
  • 363,520
  • 117
  • 767
  • 871
12
votes
2 answers

Evince fails to start because it cannot read .Xauthority

I'm logged in remotely over SSH with X forwarding to a machine running Ubuntu 10.04 (lucid). Most X11 applications (e.g. xterm, gnome-terminal) work fine. But Evince does not start. It seems unable to read ~/.Xauthority, even though the file exists,…
Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
12
votes
5 answers

Cannot connect to X server :0.0 as superuser

When I am online, I get following error and the tool does not start: [root@dhcppc9 lin64]# ./ise No protocol specified _pn: cannot connect to X server :0.0 But everything is OK when I am not a superuser. Why that? Edit [root@dhcppc9 lin64]# export…
msz
  • 301
  • 2
  • 3
  • 12
12
votes
3 answers

How to run startx as non-root?

Recently, I switched from Ubuntu to Arch Linux. I've installed X11 as my Window System and KDE as my Desktop Environment. I've separate partition for /home, /var, / and /boot and they all mount at boot time. When I run startx, the following message…
Habi
  • 463
  • 3
  • 8
  • 19
9
votes
6 answers

SSH XForwarding fails - xauth bad display name

I'm trying to setup XForwarding over ssh, but it fails. The same result happens whether I use the argument -X or -Y for ssh. The error I get. a@ASUS-N53SM:~$ ssh -X -p 6623 [email protected] [email protected]'s password: Last login: Sun Feb …
Rucent88
  • 1,850
  • 4
  • 24
  • 33
8
votes
4 answers

How to troubleshoot failed X11 forwarding with ssh?

When I try to establish an X11-forwarding connection to myserver, I get the following error: % ssh -X myserver xlogo X11 connection rejected because of wrong authentication. X11 connection rejected because of wrong authentication. X11 connection…
kjo
  • 14,779
  • 25
  • 69
  • 109
8
votes
2 answers

How to access X display from a cron job when using gdm3?

Possible Duplicate: Open a window on a remote X display (why “Cannot open display”)? I'm trying to run a cron job that needs access to my X session. I know my X session will always be :0, so part of it is easy: /30 * * * * DISPLAY=:0 command but…
derobert
  • 107,579
  • 20
  • 231
  • 279
6
votes
0 answers

MPI program causes "invalid MIT-magic-cookie-1 key" warning to show

I'm setting up a new development environment that requires high performance computing. I installed mpi and openmpi on this new machine (Ubuntu 20.04), and I wrote the following code in python as a sort of "hello world" style test. from mpi4py import…
SoyBison
  • 61
  • 1
  • 2
6
votes
1 answer

xauth is unable to write to my .Xauthority file

I run Arch Linux with the window manager BSPWM (so no DE) and recently I have been having a problem with my .Xauthority file. I am no longer able to start my X server because it is unable to write to my .Xauthority file. When I tried deleting my…
Surya R
  • 71
  • 1
  • 1
  • 3
6
votes
1 answer

Xauthority problem xdpyinfo: unable to open display "".

I am trying to run a program after enabling X windows port forwarding. My sshd_config file in /etc/ssh/sshd_config is configured such that: X11Forwarding yes X11DisplayOffset 10 X11UseLocalhost yes and my ssh_config file in /etc/ssh/ssh_config…
CrazyCray
  • 61
  • 1
  • 1
  • 2
6
votes
2 answers

XAUTHORITY environment variable set repeatedly on every login

I am running a Suse Linux 11.04 system. My problem is that when I do a fresh login into a shell as root, a new Xauthority file of the form xauth***** gets created in the /root/ directory. Upon exiting from the shell, a few .xauth files remain…
user1039494
  • 61
  • 1
  • 2
5
votes
2 answers

No xauth program; cannot forward X11

I got the following error message when I use ssh -v -Y. The server OS is mojave. Does anybody know what is wrong? debug1: No xauth program. Warning: No xauth data; using fake authentication data for X11 forwarding. debug1: Requesting X11 forwarding…
user1424739
  • 215
  • 1
  • 3
  • 10
5
votes
1 answer

Should I be concerned with the error xauth: /home/user/.serverauth.535 does not exist?

I installed a minimal Fedora system and have built it up to getting X running with Xmonad as my window manager. I can startx fine and so far I don't see any issues with my current setup while in X. When I leave X, the first line I see is xauth:…
Eric
  • 839
  • 4
  • 13
  • 19
1
2 3 4