From: Luca Ferrari <fluca1978@gmail.com>
To: Tim Visher <tim.visher@gmail.com>
Cc: help-gnu-emacs <help-gnu-emacs@gnu.org>,
Michael Albinus <michael.albinus@gmx.de>
Subject: Re: cannot ssh edit a file
Date: Tue, 23 Feb 2021 17:25:17 +0100 [thread overview]
Message-ID: <CAKoxK+4Hy7A09shjrH3q8izDTojm66SLnOjrnnWUSRzBivEbiA@mail.gmail.com> (raw)
In-Reply-To: <CAHa53uxhxRL5-ORe=NPgjaZEogf3gH0+ZGLssVPDBZNUHFChTA@mail.gmail.com>
On Tue, Feb 23, 2021 at 4:45 PM Tim Visher <tim.visher@gmail.com> wrote:
>
> On Tue, Feb 23, 2021 at 3:20 AM Luca Ferrari <fluca1978@gmail.com> wrote:
>>
>> On Mon, Feb 22, 2021 at 7:54 PM Tim Visher <tim.visher@gmail.com> 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
next prev parent reply other threads:[~2021-02-23 16:25 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-20 9:43 cannot ssh edit a file Luca Ferrari
2021-02-20 13:21 ` Leo Butler
2021-02-20 15:22 ` Luca Ferrari
2021-02-20 15:42 ` Luca Ferrari
2021-02-20 15:45 ` Tim Visher
2021-02-20 16:35 ` Óscar Fuentes
2021-02-21 9:55 ` Luca Ferrari
2021-02-21 14:26 ` Tim Visher
2021-02-21 15:30 ` Michael Albinus
2021-02-22 7:59 ` Luca Ferrari
2021-02-22 8:38 ` Michael Albinus
2021-02-22 14:56 ` Luca Ferrari
2021-02-22 15:06 ` Michael Albinus
2021-02-22 16:00 ` Luca Ferrari
2021-02-22 16:45 ` Tim Visher
2021-02-22 17:37 ` Michael Albinus
2021-02-22 18:54 ` Tim Visher
2021-02-23 8:19 ` Luca Ferrari
2021-02-23 15:44 ` Tim Visher
2021-02-23 16:25 ` Luca Ferrari [this message]
2021-02-23 16:37 ` Tim Visher
2021-02-23 16:44 ` Michael Albinus
2021-03-15 15:56 ` Luca Ferrari
2021-03-15 16:27 ` Michael Albinus
2021-03-18 10:40 ` Luca Ferrari
2021-03-18 11:57 ` Michael Albinus
2021-02-23 16:40 ` Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CAKoxK+4Hy7A09shjrH3q8izDTojm66SLnOjrnnWUSRzBivEbiA@mail.gmail.com \
--to=fluca1978@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=michael.albinus@gmx.de \
--cc=tim.visher@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.