Subject: bug#5434: 23.1; Emacsclient fails with Rejected Authentication Over SSH

From: Dan Nicolaescu <[email-masked]>
Date: Wed, 20 Jan 2010 18:20:15 -0800 (PST)

"Joel J. Adamson" <[email-masked]> writes:

  > Please write in English if possible, because the Emacs maintainers
  > usually do not have translators to read other languages for them.
  > 
  > Your bug report will be posted to the [email-masked] mailing list,
  > and to the gnu.emacs.bug news group.
  > 
  > Please describe exactly what actions triggered the bug
  > and the precise symptoms of the bug:
  > 
  > Having started an Emacs session on <remote-host> (the machine that
  > generate this bug report), logging in via ssh and attempting to bring up
  > an Emacs frame using 'emacsclient -c' on the local display yields
  > 
  > ,----
  > | *ERROR*: Display localhost:10.0 can't be opened
  > `----
  > 
  > From Emacs.
  > 
  > ,----
  > | $ emacsclient -c
  > `----
  > 
  > immediately yields
  > 
  > ,----
  > | X11 connection rejected because of wrong authentication.
  > `----

Does:

$ emacs

work at this point?

I use the scenario you describe every day, so it should work.

Try connecting with "ssv -v" 

and see what message it prints when you try "emacsclient -c"