From: Michael Albinus <michael.albinus@gmx.de>
To: Arteen Abrishami <arteen1000@gmail.com>
Cc: 63633@debbugs.gnu.org
Subject: bug#63633: Emacs becomes unresponsive when trying to ssh into localhost (MacOS)
Date: Mon, 22 May 2023 21:25:16 +0200 [thread overview]
Message-ID: <87h6s4dv8j.fsf@gmx.de> (raw)
In-Reply-To: <3F1F258D-B45F-4550-9442-218CADB4C419@gmail.com> (Arteen Abrishami's message of "Mon, 22 May 2023 11:28:22 -0700")
Arteen Abrishami <arteen1000@gmail.com> writes:
Hi Arteen,
> The trace I sent was under ‘*debug tramp*’. There is also another under *debug tramp/ssh cs111@localhost#2222*’. I’m attaching both. The second is quite large.
Thanks. I know it is large, but this is part of the analysis.
--8<---------------cut here---------------start------------->8---
> 11:21:04.120251 tramp-send-command (6) # exec ssh -l cs111 -p 2222 -o ControlMaster=auto -o ControlPath=tramp.%C -o ControlPersist=no -e none localhost
> 11:21:17.538440 tramp-search-regexp (1) # Quit: "Quit", ""
> Last login: Mon May 22 04:19:56 2023 from 10.0.2.2
> % [01;32mcs111@cs111[00m [01;34m~[00m [00m [?2004h
--8<---------------cut here---------------end--------------->8---
Tramp has sent the "ssh -l ..." command. As result, it tries to detect
the shell prompt. It fails, because there are escape control sequences.
Pls teach your remote host NOT to send these characters. The Tramp
manual discusses the case.
If your remote shell is zsh, for example, you must add to the remote
~/.zshrc file
--8<---------------cut here---------------start------------->8---
[[ $TERM == "dumb" ]] && unsetopt zle && PS1='$ ' && return
--8<---------------cut here---------------end--------------->8---
Best regards, Michael.
next prev parent reply other threads:[~2023-05-22 19:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-21 22:11 bug#63633: Emacs becomes unresponsive when trying to ssh into localhost (MacOS) Arteen Abrishami
2023-05-22 8:14 ` Michael Albinus
2023-05-22 17:01 ` Arteen Abrishami
2023-05-22 17:23 ` Michael Albinus
[not found] ` <3F1F258D-B45F-4550-9442-218CADB4C419@gmail.com>
2023-05-22 19:25 ` Michael Albinus [this message]
2023-05-22 21:33 ` Arteen Abrishami
2023-05-23 7:42 ` Michael Albinus
2023-05-23 2:34 ` Eli Zaretskii
2023-05-23 7:16 ` 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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87h6s4dv8j.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=63633@debbugs.gnu.org \
--cc=arteen1000@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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).