all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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 09:19:25 +0100	[thread overview]
Message-ID: <CAKoxK+7zAkm2SedANbQ_tXQxiLWUqNhNBtd5oQFm0woTvw7LZg@mail.gmail.com> (raw)
In-Reply-To: <CAHa53uy3zYA2UE0BFWCgBsTm-ngFWcW0bU54fAwyoshusni-=g@mail.gmail.com>

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 ~ %


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



  reply	other threads:[~2021-02-23  8:19 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 [this message]
2021-02-23 15:44                         ` Tim Visher
2021-02-23 16:25                           ` Luca Ferrari
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+7zAkm2SedANbQ_tXQxiLWUqNhNBtd5oQFm0woTvw7LZg@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.