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: Tue, 23 Feb 2021 11:37:43 -0500 Message-ID: References: <87im6lqvzo.fsf@gmx.de> <87eeh8qyz3.fsf@gmx.de> <87a6rwqh0h.fsf@gmx.de> <8735xoqa07.fsf@gmx.de> 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="20388"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Michael Albinus To: Luca Ferrari Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 23 17:39:45 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 1lEaiv-0005D5-4x for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Feb 2021 17:39:45 +0100 Original-Received: from localhost ([::1]:35808 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEaiu-0000pz-5r for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Feb 2021 11:39:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEahl-0000ok-K2 for help-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:38:35 -0500 Original-Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]:40424) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEahh-0002DY-L5 for help-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:38:33 -0500 Original-Received: by mail-wr1-x42a.google.com with SMTP id d11so3869984wrj.7 for ; Tue, 23 Feb 2021 08:38:28 -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=KNY81Vk4qcdvdgPPDDba4D06n7qgA5wXdGb0gxAupsg=; b=IhimZSTaAdL7m55tpryNRcgoD1w5+w8C5WdFZSJ2RXu21DdtApCmQftHD8qgp/U4Pd qK2QFyri/+yHzEFti8Z2mF0gGe0Ie0BvHgBLgiwHaYRBmkOphA6TEewhlmTUQUZRQ91Y 4G3ZtFPfnnjBOi1hBIPw6xxXu/S2VLgj30Rc4JrhEm8EnZ5OIGlIYMTG1QBHHMcsYLji 6bzM4E6iuFiu17b0+jcNtm0/CLH55KSFL1yzXpak/7p/1PYXfTo6PwEusBMm0qHb0qP3 27jy2T2sC/uHbrWL7q/5y85177H/1fHGUA2zWcm1zbS7YJU8iuAP+EUH8T581JlTNx+d lC4w== 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=KNY81Vk4qcdvdgPPDDba4D06n7qgA5wXdGb0gxAupsg=; b=nOQ4kgPsxFH8Po6j00e6x/cCVn5sKrdvrZZeYOd0sn2jYVVADEhiwk0vtkHAcXdPoF EBuY/7c2kX37IrDsuIOSS9L8CQAFC2O6zdlF3utMswWlKSQ7v6qrUh40fnc0NgMFZmfD EtNUxScH79JEvucF9X+pYz5mYLCH1YAYWi0kdVTFcMW0b7KPBJuH9lAY6t2p5uGSaNhH b2wfswTotS1RX/dtgchR/mcQmtw8JjRXOEYtPxiGljIbx3AEhlYIQfwrNQkwLr4xWd+X a//HLSSKQkb/Y2CabieYIzBh6vZJs7M6NOWr9NDzjDrpDzMddf3m5qOQYCiA/O38h7kH 7T9Q== X-Gm-Message-State: AOAM531MbfYdOSHQjdi2nb+ATsx8xf9ZkXbC1XQxgl0XpS8FaO5Cim2H 1QjBBLT/V44ZGoOPYIV0vc0N9emBXMVFIi4eo5o= X-Google-Smtp-Source: ABdhPJwCWHQ78AExLuu2EtIYUsyIsR6fj3R5cFjPDBLbo0nldThf3GkhSRwfII+q4rc93DSVhEnYf3+SRcWh7XPpGIs= X-Received: by 2002:adf:de01:: with SMTP id b1mr26687217wrm.369.1614098307755; Tue, 23 Feb 2021 08:38:27 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=tim.visher@gmail.com; helo=mail-wr1-x42a.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:128213 Archived-At: On Tue, Feb 23, 2021 at 11:25 AM Luca Ferrari wrote: > On Tue, Feb 23, 2021 at 4:45 PM Tim Visher wrote: > > > > On Tue, Feb 23, 2021 at 3:20 AM Luca Ferrari > wrote: > >> > >> On Mon, Feb 22, 2021 at 7:54 PM Tim Visher > wrote: > >> > Indeed. Right there in the FAQ. > https://www.gnu.org/software/tramp/#Frequently-Asked-Questions > >> > >> Apparently I'm too dumb to set the dumb terminal: > >> % ssh luca@miguel 'tail -n 1 .zshrc' > >> [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return > >> > >> While I confirm I have zsh on the remote host, with the adam prompt > >> that uses colors, I've also tried to change the shell to bash without > >> any fancy prompt and nothing has changed. > >> As well as wth the dumb terminal Emacs still freezes. > >> And again, I've tried another user on the remote side that has a sh, > >> so no fancy prompts at all! > >> > >> I'm able to connect with the tramp ssh command: > >> > >> % ssh -l luca -o ControlMaster=auto -o ControlPath='tramp.%C' -o > >> ControlPersist=no -e none miguel > >> Last login: Tue Feb 23 08:58:09 2021 from n261732 > >> luca@miguel ~ % > > > > > > So right here I think you're still showing evidence that whatever you're > doing to attempt to change the PS1 isn't taking. The prompt (if your > customizations were working) should be `$ ` exactly, not `luca@miguel ~ > %`. > > Yes, because I mistakenly added the "dumb" line to the end of the > file, instead of the head. Now I've fixed: > > % ssh -l luca -o ControlMaster=auto -o ControlPath='tramp.%C' -o > ControlPersist=no -e none miguel > Last login: Tue Feb 23 17:19:39 2021 from n261732 > $ > > > however, nothing has changed, and launching emacs with tramp verbose: > > % /opt/emacs/emacs26.3/bin/emacs -Q --eval '(setq tramp-verbose 10)' > > and opening an ssh file I got emacs frozen as before, but the tramp > buffer does not shows anything at all even after minutes. > > I'm quite depressed! > Unfortunately if the tramp traces aren't available I think there's nothing else I can do to help you. I would just be sure to double check everything to make sure you're typing everything accurately etc. I haven't seen the TRAMP debug facilities fail like that and that's pretty battle-tested software so I think it's likely that you're simply mistyping something. Good luck!