From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Luca Ferrari Newsgroups: gmane.emacs.help Subject: Re: cannot ssh edit a file Date: Tue, 23 Feb 2021 17:25:17 +0100 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="40326"; mail-complaints-to="usenet@ciao.gmane.io" Cc: help-gnu-emacs , Michael Albinus To: Tim Visher Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Feb 23 17:26:54 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 1lEaWU-000AMA-3l for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Feb 2021 17:26:54 +0100 Original-Received: from localhost ([::1]:50050 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lEaWT-0002fu-5v for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Feb 2021 11:26:53 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:38364) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lEaVb-0002ea-5s for help-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:25:59 -0500 Original-Received: from mail-ot1-x32c.google.com ([2607:f8b0:4864:20::32c]:42852) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lEaVY-0004vx-8k for help-gnu-emacs@gnu.org; Tue, 23 Feb 2021 11:25:58 -0500 Original-Received: by mail-ot1-x32c.google.com with SMTP id e45so6867013ote.9 for ; Tue, 23 Feb 2021 08:25:55 -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=tOoQQmKq5prRa6NhmWvs5DOn/vYbXEIhCWkhFm3urdU=; b=gIdoJI0fo7Jlni6nRPyy+sq+umpMp7kW9Y0CNiuGgbCxF39PHx9bpelWIJsDfzflNu aBjXV/MKKH4axfnwzU57WbD+LNYDNfdpsgUfoxV6FH7z1sFKjM4NLNUuKGWMMPbBzBXr 8sgNh6QS1W0affOa/01fYgs1jGTIGO6H5DcCuh6uh1Pw9QeGFPpUQQdPNV/rnb4MkTXC 2zk8/V7s9I7mbJHLgDGqFeM4/1dv9wd7ypgUYZvTozEIDH59s+51qsxxoM95bceFNY11 sargz7uyNQ1DULFu7o1zwklbbXBXSdUBArQMmR466Q3c/kTB6zPGNtCacyvUUXj840r8 yo1Q== 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=tOoQQmKq5prRa6NhmWvs5DOn/vYbXEIhCWkhFm3urdU=; b=CtkaxGMl4xofhoAB2J72TEXd63LOS3eDzweizYmz8OqEfOHRF6KkTPX9xJm+VPCLr2 GT22UPJsbYAxkZt0clNIeyQj+4mJ+MxwUaEnSkGwTuL5/yFN2QZNRFz4Er3MqQwjxl67 gsuBbYv6C4OEQGhHtjRc2SoVslfpcmWPutvYaWJxpj9XB73lJXy4lCDvLgsiHgDBpnoL CRdUk7pjScE7RFeBvo0iuwkDQI/sJt+zPKqs5QS5yQKlJZFrqRNyat90K1LmPATgKpcW k5OrZ8yJOnxy8iCfvZEeoWQfg1ywDedLG6Sd7hf+3oTDSoq9/mf7Xvbn25hcOJJj1Ljs mM6A== X-Gm-Message-State: AOAM530xCEZpTL9jspzmyoyRMIKNsf0NYD3MT2ZQSvOswDNwecswxKQw iM/ugBsTIHX6ET++rD3Ksuptya7G/rXMKzqi2Eg= X-Google-Smtp-Source: ABdhPJyfOY1JXCabEA/lKixsmRDLMLNmBDY59r2ADv3kOdqDh8f8vIOppdM3atVrFHO5vD91In5DI+W0u5+WXtyRPRY= X-Received: by 2002:a9d:6e92:: with SMTP id a18mr9980762otr.212.1614097554147; Tue, 23 Feb 2021 08:25:54 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::32c; envelope-from=fluca1978@gmail.com; helo=mail-ot1-x32c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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_ENVFROM_END_DIGIT=0.25, 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:128212 Archived-At: 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! Luca