From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Glenn Morris <rgm@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: CVS trunk emacsclient: X11 connection rejected
Date: Mon, 29 Oct 2007 15:16:41 -0400 [thread overview]
Message-ID: <jwvsl3t20xj.fsf-monnier+emacs@gnu.org> (raw)
In-Reply-To: <wz7il5n6qk.fsf@fencepost.gnu.org> (Glenn Morris's message of "Mon, 29 Oct 2007 13:57:55 -0400")
>>> I did try a test with an unset XAUTHORITY:
>>
host1> XAUTHORITY= emacs -Q -f server-start &
host1> ssh host2
host2> ssh host1 emacsclient --no-wait $PWD/README
>>
>>> and it didn't seem to help.
> OK, so the above definitely doesn't change anything, I still get "X11
> connection rejected".
> If instead I unset XAUTHORITY before starting Emacs, or set it to
> ~/.Xauthority, then `ssh host2' warns "No xauth data; using fake
> authentication data for X11 forwarding.".
If you do
host1> XAUTHORITY= xterm
is an xterm created?
What does `xhost' say?
> emacs, etc. Now the emacsclient command (with no display option) shows
> the behaviour of popping up a new frame of the server Emacs showing
> scratch, and not visiting the specified file at all.
That's good: the separate frame is normal (it's because the
emacsclient uses display "localhost:10.0" which Emacs can't know is
the same as display ":0.0"), and the "2 frames but no file" problem is
"known" (you already reported it) and is unrelated to X11
connection problems.
>> What happens if you do
host2> ssh host1
host1> echo "$DISPLAY"
> Is that meant to be that way round? I should have used better names
> than "host1", "host2". :)
I meant just that: assuminh you already have a shell on host2 (probably
via ssh), that was meant to say: do "ssh host1" to log back onto the
local computer. And in this new interactive shell use `echo "$DISPLAY"'
to get the display number chosen by ssh. The interactive shell is also
used just to keep the connection open.
host1> ssh host2
host2> ssh host1 'echo $DISPLAY' # localhost:10.0
host2> emacs -Q --eval '(make-frame-on-display "localhost:10.0")'
> then it works.
Huh? Really? How can it? `localhost:10.0' proxy display should be
created by the `ssh host1' and destroyed as soon as `ssh
host1' terminates. Maybe it's a side effect of the connection sharing
feature of "recent" OpenSSH?
Stefan
next prev parent reply other threads:[~2007-10-29 19:16 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-26 0:57 CVS trunk emacsclient: X11 connection rejected Glenn Morris
2007-10-26 5:24 ` Stefan Monnier
2007-10-27 0:44 ` Glenn Morris
2007-10-27 2:16 ` Stefan Monnier
2007-10-27 2:43 ` Glenn Morris
2007-10-27 3:04 ` Stefan Monnier
2007-10-27 3:33 ` Glenn Morris
2007-10-27 19:51 ` Stefan Monnier
2007-10-29 17:57 ` Glenn Morris
2007-10-29 18:02 ` Glenn Morris
2007-10-29 19:16 ` Stefan Monnier [this message]
2007-10-29 20:25 ` Glenn Morris
2007-10-29 21:01 ` Stefan Monnier
2007-10-29 22:03 ` Glenn Morris
2007-10-30 2:01 ` Stefan Monnier
2007-10-26 5:41 ` Jan Djärv
2007-10-27 0:47 ` Glenn Morris
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=jwvsl3t20xj.fsf-monnier+emacs@gnu.org \
--to=monnier@iro.umontreal.ca \
--cc=emacs-devel@gnu.org \
--cc=rgm@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.