[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Failed to run Emacs in X windows mode on remote host over ssh with X
From: |
Hongyi Zhao |
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 |
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
Selection_002.png
Description: PNG image