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 09:19:25 +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="3660"; 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 09:20:49 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 1lESw5-0000sI-KL for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Feb 2021 09:20:49 +0100 Original-Received: from localhost ([::1]:47998 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lESw4-0007c5-IU for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 23 Feb 2021 03:20:48 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lESvM-0007YG-HR for help-gnu-emacs@gnu.org; Tue, 23 Feb 2021 03:20:04 -0500 Original-Received: from mail-oi1-x232.google.com ([2607:f8b0:4864:20::232]:39266) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lESvK-0001cn-Kp for help-gnu-emacs@gnu.org; Tue, 23 Feb 2021 03:20:04 -0500 Original-Received: by mail-oi1-x232.google.com with SMTP id z126so1169760oiz.6 for ; Tue, 23 Feb 2021 00:20:02 -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=CFqa4gMNMrTqH8mFIh8E5Fsb4RvFw3gni+5ml0OHnR4=; b=LvkDK5RyrsDx/de+abcVa/y2gMU51DitoEfL+P7azZw12BFlTWdQK4Vfvtp+uyEqEf 22gZOD/u88WdrQRhZ8DmBA874R5aYO/bbXOyP3b3lvQnEmfZlXLTXtfqP2GdVOSn+l3P RTqPxoPUkKK+iSI3zsem5hqOfoalEeXxLNjXIB1nSpQNoZ9NZiSK4jEZa2ZtH/YfrlfC r/DVyTXiqcL9SF7sZ+40bL5x1MjfOl0R3rZrohO4K2+I4XNYkMZPm4oN7gF95B8rAwAj o7N37YtAl5Rdq6qAPeh6wAroulhIGTU7YwhKkhIQ7hvudRD8cmOKhrjzWGbJghaI7HdZ EqLA== 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=CFqa4gMNMrTqH8mFIh8E5Fsb4RvFw3gni+5ml0OHnR4=; b=SVkRtcuIYsM7lF7mTJ3kO+WWAiBTN7DeC+7MQy7KcgxGCX3en6vQgDQskIjaSJtRTN 3/HOy0vlO357ZVL5GgBSN0+4IbKM4boDHH/CKLkuykEq5OEtoF0l3642jB16Eapc/mOX 1/Lhi2mIl9eVt8yufqrjEn4E4o8I+yvWxR4liRDHsVaLiOyxJYKSaYjVgTupHgCOv9SL tRv7XSr3k7TryaTc9kEo46j3/0NdSds2U6+tqLWQT3dsc/D6yTXb15MmTyMjZMDVVTSt AwiLkn1SN8RErG9cGPoom05Y8tLmYZsWbkie8ekWChmmAW7bw4A0KsA1PRZQmJUozD0L RAeg== X-Gm-Message-State: AOAM531X6/MqMUgQdUPi4TuXAxvANY25mN+IdXZJwvSGLlRk+Nf7N3Ia 9C+uJa2j1KpMH6SeZNxxTD0ylwxIvYyzAmI9guI= X-Google-Smtp-Source: ABdhPJzsKi0EuTYrYjyZL2kGNlfqg1Vf6uI+nHekEvWN91ZcWiA/O29LGGK+AoRP5ISQWWFXLjl+YI09Xo9z/iIaiIE= X-Received: by 2002:a05:6808:608:: with SMTP id y8mr18698899oih.55.1614068401606; Tue, 23 Feb 2021 00:20:01 -0800 (PST) In-Reply-To: Received-SPF: pass client-ip=2607:f8b0:4864:20::232; envelope-from=fluca1978@gmail.com; helo=mail-oi1-x232.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:128209 Archived-At: 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 ~ % I've also tried to unset PS2 and PS3 when using dumb terminal, without any succcess: % ssh luca@miguel 'tail -n 1 .zshrc' [[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && unset PS2 && unset PS3 && return Then I tried to ssh to localhost, I mean I logged into the remote host, started emacs locally, and C-x C-x /ssh:luca@localhost: and it worked, therefore it does not seem a problem with the zsh prompt, rather a problem with tramp on my local machine. Any other suggestion? Thanks, Luca