From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Hongyi Zhao Newsgroups: gmane.emacs.help Subject: Re: Failed to run Emacs in X windows mode on remote host over ssh with X11 forwarding enabled. Date: Tue, 27 Jul 2021 23:35:28 +0800 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19963"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Skip Montanaro Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Jul 27 17:36:25 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m8P84-0004zP-U6 for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Jul 2021 17:36:24 +0200 Original-Received: from localhost ([::1]:56018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8P83-0002uJ-Vo for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 27 Jul 2021 11:36:24 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56544) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8P7Q-0002tr-J1 for help-gnu-emacs@gnu.org; Tue, 27 Jul 2021 11:35:44 -0400 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:42730) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8P7O-0001pq-Rr for help-gnu-emacs@gnu.org; Tue, 27 Jul 2021 11:35:44 -0400 Original-Received: by mail-lf1-x12f.google.com with SMTP id u3so22384643lff.9 for ; Tue, 27 Jul 2021 08:35:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=3iVXFdPRjiSypmGNp3Z+qMDUaxzl7Vz/dPuAzawd4ig=; b=EX1L+jdg7U7a6OZU2D0wq7CQ8jjhAa12+K+V6yRv0sQZk+qUM0kAILYmSh1kGJ7VJ8 p5oajaznmKRkIxo0oGTh1XNksvqebJC2Yso+EAdsf2tjwgqhGNQs9FNP1bOqANu6bY+7 c3TgCi+fIteuz9lVCSL1YsJF/vUm++266ZpU+2JBFXZUY3M1sPmfxDU5myWFWeh1myRg MaB4uxUlJSw4lEXvQD6WtIbKrINvicDqpbwOvgH3S0bEv834MiPwl9VuIhmlDPrWg6Cz l93XvAr5ey0xmCiPm4QjtYyQwaYOvQ45ndhcTxYH+vJX53xojJb+aYxBmcgmbg3ipD3q OWhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=3iVXFdPRjiSypmGNp3Z+qMDUaxzl7Vz/dPuAzawd4ig=; b=kp7tZn2bnLl0pkmJEZCBFfTqXWqLRwif7aWZ5oCxcl6HIntQ51zcZ234yIA+p9Sh3R bn+CnAbJS8a9xgdodSsZ8fjO+08sQQezkjdbuCeyw8agB2AoaK5qBkRfK9e9r0u/Qs1I i59fQTlJwIe1IlJkgCuUT5Xh8c4nqkcRpkCvkzkiz9l1IHX/vhjGbBr/jwn3C2zk3C9I 1/kp5qFF36+hDqKiJGYch312GUuAloHyH71GJTSLVaJTfdbrD8coY2NEcl3rF0EzuAWE KNDcOKSRXsRn7uSLIHrBTrgzTp5p8bPK3ugLIVaM11A7kxM64ZRCqItS5uPdi7D8HKGf uIHg== X-Gm-Message-State: AOAM530oy/jVR9d5cq3XOkrD14v7sRunp4+/nUej1KozX4zROwz9CQIe O93irWO7Z5URTl5+Z1X8ApYPndm8UneuubszocQ= X-Google-Smtp-Source: ABdhPJx8qsVDAjWHXFWqoL1cJUGJsBpo1HjWnCeZXG14KXXjtsMwvVNRh5rsHb4PjoFZJjD6DBCILG9t1FiLhV1+UW0= X-Received: by 2002:a05:6512:3314:: with SMTP id k20mr12225232lfe.461.1627400140331; Tue, 27 Jul 2021 08:35:40 -0700 (PDT) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::12f; envelope-from=hongyi.zhao@gmail.com; helo=mail-lf1-x12f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:132127 Archived-At: On Tue, Jul 27, 2021 at 11:07 PM Skip Montanaro 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. 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