From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Tim Visher Newsgroups: gmane.emacs.help Subject: Re: cannot ssh edit a file Date: Sun, 21 Feb 2021 09:26:49 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="22449"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs To: Luca Ferrari Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Feb 21 15:28:13 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 1lDpiV-0005j4-Gj for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 15:28:11 +0100 Original-Received: from localhost ([::1]:47830 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lDpiT-0003pB-9W for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 21 Feb 2021 09:28:09 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60350) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lDpht-0003p1-PG for help-gnu-emacs@gnu.org; Sun, 21 Feb 2021 09:27:33 -0500 Original-Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:36772) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lDphq-0007rN-Iu for help-gnu-emacs@gnu.org; Sun, 21 Feb 2021 09:27:33 -0500 Original-Received: by mail-wr1-x42d.google.com with SMTP id u14so16339646wri.3 for ; Sun, 21 Feb 2021 06:27:30 -0800 (PST) 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=68ArI6XIjCm9vXHrH2y4quwW1ajaHRmbklXjomWpbG4=; b=fkFmofbOWR7VcogObZUR0QyXdg3g7o9eUMd50rRHHuyzWiAkJWqneMTXWXSJ/2kK+T MdHrpq+8qfPX2DhvAHhamp/Z4NRriHiFHX+6WiTcHZqY2AE+ipMKTfW5nGtxNvObcsXd QRVpQ9OhnQ882/5S1EwdxD7Agxu36oMDoViVP+vYmQ/Px2a9IAuTfdMm+9EWC4hmNtsp dmAumXNy1j8eS8Mx5IwlfffqMf653IMC1gGzK5AbiqYFDMtFmeK0yESLbt+tly9sS85F 81As8WvPI/LipbrXDlycDksbn8jLF4fNVRsF82CIPjUJglGfWNe11Vy7/BIvipM99yS1 PhRg== 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=68ArI6XIjCm9vXHrH2y4quwW1ajaHRmbklXjomWpbG4=; b=aossRbShU9x9XF/StzedX/7+pvUw1iItdjH1EYANnLWnZq7z3UJoEuzWW6jmmaKHcp 2s0EDKwvPBrKESIVfFcumxSUWK8gGFkqpaOIjleM/6I3bLRZ3iLsv2qkc08iQY9TYJil MpYUcT5gTR0GwC3y9jMWRHS7LbMhLkKzIubyC6/yi4iq+674L3gNwYmrcncsutkTmqmj ZCQs+UISXt/diSSm6NTOwumJiz4EWfJshIPYQS79fRBLQmWd3zVqzyZNn5jMPLAgokgq umZkdnd+Jd87reADSfLOqiqh8VjZ7yIHCMtNjalhkOkNHuJRzERLeB0QgM0fjd9mNQTU s7ig== X-Gm-Message-State: AOAM531L4ujaQ1g/k7lrVQ5gKluynk/sYMeCotbJEZbRmdh9XaGBDRU9 0MYE7zd6MhISvpsgeNvgRvUvLdH1r7+qCE1xj5E= X-Google-Smtp-Source: ABdhPJz1Q802EK171s8vgOKKpd+D9A6I9k9+HmhC6sjLESrfnLiTBIB2c5o7mEPYuzV42AsIfC9LqIzEiGIB4pfvsJA= X-Received: by 2002:adf:de01:: with SMTP id b1mr17274499wrm.369.1613917648890; Sun, 21 Feb 2021 06:27:28 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=tim.visher@gmail.com; helo=mail-wr1-x42d.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, HTML_MESSAGE=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-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:128184 Archived-At: On Sun, Feb 21, 2021 at 4:56 AM Luca Ferrari wrote: > On Sat, Feb 20, 2021 at 4:45 PM Tim Visher wrote: > > > > Can you reproduce the problem from `emacs -Q`? > > > Apparently this works a little better: it does not freeze on the colon > typing, but when I try to open a file the minibuffer keeps saying > "Waiting for prompts from remote shell..." and the connection is not > established. This happens both with remote users that have zsh or sh > as login shells. > The only difference is that with sh as default shell, the minibuffer > says "Tramp: Found remote shell prompt on miguel" (miguel being the > remote host) and nothing happens, no connection is made. > I've inspected connections from the remote host point of view, and > there is no ssh connection reported by netstat. > So from `emacs -Q` did you apply =C3=93scar's advice regarding setting the = TRAMP verbosity level? This feels likely to be an ssh configuration problem on either the local end (in ~/.ssh/config etc.) or on the remote end in your shell init files. TRAMP can be particularly difficult to debug in this kind of situation, though. My post about how to only customize your prompt when the shell is interactive may be interesting to you as well. https://blog.twonegatives.com/post/615830090370187264/effective-emacs-how-t= o-have-your-fancy-prompt-and