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: Wed, 28 Jul 2021 15:14:42 +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="32730"; 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 Wed Jul 28 09:18:55 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 1m8dqA-0008Kq-Rz for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Jul 2021 09:18:54 +0200 Original-Received: from localhost ([::1]:35330 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8dq9-0004xa-Su for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 28 Jul 2021 03:18:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35952) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8dmM-0003qB-9h for help-gnu-emacs@gnu.org; Wed, 28 Jul 2021 03:14:58 -0400 Original-Received: from mail-lf1-x12f.google.com ([2a00:1450:4864:20::12f]:33731) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8dmK-0003vS-Ij for help-gnu-emacs@gnu.org; Wed, 28 Jul 2021 03:14:57 -0400 Original-Received: by mail-lf1-x12f.google.com with SMTP id d17so2198974lfv.0 for ; Wed, 28 Jul 2021 00:14:56 -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=33yRgM8BBIcLc5zXgvADv+p7xMkcjo/nVS7vSnR+GVg=; b=tTvjS2XPYOlGrdfsol2omM1N1RhcbGhomPxbebuvIgakJIb1eDhRiFPLiBPJB6fVCx Ku8c4hDKsknGmU1z/CLdmA8ejFWr05eIJUSmFIAP5Akr91FMGabqv6aIqfpm26hX76po JSSsSPJUB3sde8FfOcuqTHv9KjN/pg8fzyLS896VmXd5kKjHXOpClcOdvfficGjP+IBF E8ce9OS0N3o8c6knm1uBDs219lnsjxp1PPPIrLBkLBFlk04S14SbGr2xgmzJkzN+YAZj 3OMYpX+UR/Min/RQGYvPBOzCwydDHNrG7/24AL2eB/U23xDXwcEYizav+HvAQ2m3expP 3zKQ== 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=33yRgM8BBIcLc5zXgvADv+p7xMkcjo/nVS7vSnR+GVg=; b=dU2MJqlPxuvQ0S7+UA4AVRpmfKoxBvDgji8cMA8S4HkRbvmczFMAYBdxSB7UJruEK8 3HWNonvEu6OvZcr7bSuo/w6g3x16kXi9K51+LPFEmC7ud4aBT3CIOkwb3Uzd1H11MJR1 pwGI4P596HxdtEo7uN9klFlQxALW43V66f/fYh9r9TpSElo9ANQPeWYePIKUYNL6hySH cKWX7ZOaE2Zo2MYNpJNbMIQfewcNBLxSYbbXWJvI4RDo3R/0b06MFCTN9Ee5ABKtwWpD cyDvu1dVPckDIJaG77ayVcgpfsHkycAQc59z6zMXoO35QyCC+5o7V9nFNcpO2d91eC7x D6Fg== X-Gm-Message-State: AOAM531pFjyOpfiCRyGZjqoXpLAl1rLX8rudE7FjDElvWxf4O2u7lHbf WP1mmzI/DDtCL1/2gJrq0TfosYflY2azwBHB5yc= X-Google-Smtp-Source: ABdhPJzRTuHfw7YkBqu97lqMxUuAnVMpnjGgzBzQ+YAiN9+jDPYd+cIuk2fb8U3cr7xdIkZ2ZlbTJPOQwU8SMsaFR5g= X-Received: by 2002:a05:6512:da:: with SMTP id c26mr20098185lfp.390.1627456494352; Wed, 28 Jul 2021 00:14:54 -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:132132 Archived-At: On Tue, Jul 27, 2021 at 11:35 PM Hongyi Zhao wrote: > > 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. 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 Theory and Simulation of Materials Hebei Vocational University of Technology and Engineering No. 473, Quannan West Street, Xindu District, Xingtai, Hebei province