unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
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: Tue, 27 Jul 2021 22:52:04 +0800	[thread overview]
Message-ID: <CAGP6PO+ybEeaU991-ZUtvtpEA34V_pRU1h3nUdnanM5Xtzgt1A@mail.gmail.com> (raw)
In-Reply-To: <CANc-5UyCa_RdMDHWpKP++AApsqs0nAFZH9LungZ_oYN_e-wt8Q@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1096 bytes --]

On Tue, Jul 27, 2021 at 10:18 PM Skip Montanaro
<skip.montanaro@gmail.com> wrote:
>
> > $ ssh -X werner@192.168.10.100
> > $ emacs
> >
> > At this moment, I noticed the following information:
> >
> > Display localhost:10.0 unavailable, simulating -nw
>
> Are you able to run other X-loving applications on the remote host?
> Maybe substitute "xeyes" or "xterm" for "emacs." Also, run ssh in
> verbose mode (-v) to see if it gives you clues about why X forwarding
> is (apparently) disabled.

I run ssh in verbose mode (-v):

$ ssh -vX werner@192.168.10.100

Then xterm also fails to open display, and it says that X11 connection
rejected because of wrong authentication. But I've enabled the
`X11Forwarding' option for sshd:

$ grep ^X11Forwarding /etc/ssh/sshd_config
X11Forwarding yes

So I still can't figure out what's the problem. I attached the error
message here.

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

[-- Attachment #2: Selection_002.png --]
[-- Type: image/png, Size: 212402 bytes --]

  reply	other threads:[~2021-07-27 14:52 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 [this message]
2021-07-27 15:07     ` Skip Montanaro
2021-07-27 15:35       ` Hongyi Zhao
2021-07-28  7:14         ` Hongyi Zhao
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=CAGP6PO+ybEeaU991-ZUtvtpEA34V_pRU1h3nUdnanM5Xtzgt1A@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).