unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: "Jan Djärv" <jan.h.d@swipnet.se>
To: "Joel J. Adamson" <adamsonj@email.unc.edu>, 5434@debbugs.gnu.org
Subject: bug#5434: 23.1; Emacsclient fails with Rejected Authentication Over SSH
Date: Wed, 20 Jan 2010 21:59:01 +0100	[thread overview]
Message-ID: <4B576E95.60803@swipnet.se> (raw)
In-Reply-To: <29899.1264004503@localhost.localdomain>



Joel J. Adamson skrev 2010-01-20 17.21:
>
> 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 bug-gnu-emacs@gnu.org 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.
> `----
>
> This completely disables X11 forwarding FOR EMACSCLIENT ONLY.
> Gnome-terminal still works.  Changing default xauth does not help.
> Deleting ~/.Xauthority on localhost and remote-host does not affect the
> problem.
>
> Basically emacsclient doesn't work over ssh.  Bummer!

I don't understand your setup.
Do you
1) start Emacs as a daemon on host A.
2) you then ssh in to host A and try to do emacsclient -c?

That won't work if you have ssh X forwarding on, which is what you seem to have.

The emacs daemon runs on display :0 (or something similar), and emacsclient 
tries to open your forwarded display, localhost:10, which goes to the host you 
came from.  This can never work.  Please clarify if I misunderstood.

	Jan D.






  reply	other threads:[~2010-01-20 20:59 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-01-20 16:21 bug#5434: 23.1; Emacsclient fails with Rejected Authentication Over SSH Joel J. Adamson
2010-01-20 20:59 ` Jan Djärv [this message]
2010-01-20 21:38   ` Joel J. Adamson
2010-01-21 11:27     ` Jan D.
     [not found]       ` <4193.1264081697@localhost.localdomain>
     [not found]         ` <4B5D5608.4000200@swipnet.se>
     [not found]           ` <28311.1264521130@localhost.localdomain>
2010-01-26 17:49             ` Jan Djärv
2010-01-26 21:10               ` Stefan Monnier
2010-01-27  6:11                 ` Jan Djärv
2010-01-27 15:27                   ` Joel J. Adamson
2010-01-21  2:20 ` Dan Nicolaescu
2010-01-25 16:33 ` Jan Djärv

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B576E95.60803@swipnet.se \
    --to=jan.h.d@swipnet.se \
    --cc=5434@debbugs.gnu.org \
    --cc=adamsonj@email.unc.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).