On Tue, Jul 27, 2021 at 10:18 PM Skip Montanaro 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 Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province