From: Hongyi Zhao <hongyi.zhao@gmail.com>
To: Skip Montanaro <skip.montanaro@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled.
Date: Wed, 28 Jul 2021 15:14:42 +0800 [thread overview]
Message-ID: <CAGP6POLhK8QQ781AxUGhNcYG6HaE22zAG3h4q2tAt2yFEwR5XA@mail.gmail.com> (raw)
In-Reply-To: <CAGP6PO+x89cgVTnuD-z5QC1yx+yQNXBgMOBiZ94HM4-jAZs55w@mail.gmail.com>
On Tue, Jul 27, 2021 at 11:35 PM Hongyi Zhao <hongyi.zhao@gmail.com> wrote:
>
> On Tue, Jul 27, 2021 at 11:07 PM Skip Montanaro
> <skip.montanaro@gmail.com> wrote:
> >
> > > $ grep ^X11Forwarding /etc/ssh/sshd_config
> > > X11Forwarding yes
> >
> > Is this on the remote host or your ssh client host? Have you checked
> > for X11 forwarding at both ends?
>
> On server side:
>
> $ grep ^X11Forwarding /etc/ssh/sshd_config
> X11Forwarding yes
>
> On client side:
>
> $ grep '^[ ]*ForwardX11' /etc/ssh/ssh_config
> ForwardX11 yes
>
> > Maybe this web page will help you debug the problem:
> >
> > https://www.poftut.com/linux-x11-connection-rejected-wrong-authentication-error-solution/
>
> I've checked all the aspects list there, but still meet the same error.
Finally, I figured out the solution. See the discussion on
comp.unix.shell [1] for more details. I listed below, for reference
only, the successful methods that I finally tried out.
[1]. https://groups.google.com/g/comp.unix.shell/c/7Y6_ISexpzU/m/AmIMlC6qBgAJ
Regards
--
Assoc. Prof. Hongyi Zhao <hongyi.zhao@gmail.com>
Theory and Simulation of Materials
Hebei Vocational University of Technology and Engineering
No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province
next prev parent reply other threads:[~2021-07-28 7:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-27 13:29 Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled Hongyi Zhao
2021-07-27 14:17 ` Skip Montanaro
2021-07-27 14:52 ` Hongyi Zhao
2021-07-27 15:07 ` Skip Montanaro
2021-07-27 15:35 ` Hongyi Zhao
2021-07-28 7:14 ` Hongyi Zhao [this message]
2021-07-28 7:19 ` Hongyi Zhao
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=CAGP6POLhK8QQ781AxUGhNcYG6HaE22zAG3h4q2tAt2yFEwR5XA@mail.gmail.com \
--to=hongyi.zhao@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=skip.montanaro@gmail.com \
/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.
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).