GNU bug report logs - #63633
Emacs becomes unresponsive when trying to ssh into localhost (MacOS)

Previous Next

Package: emacs;

Reported by: Arteen Abrishami <arteen1000 <at> gmail.com>

Date: Sun, 21 May 2023 22:12:02 UTC

Severity: normal

Tags: notabug

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


Message #17 received at 63633 <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Arteen Abrishami <arteen1000 <at> gmail.com>
Cc: 63633 <at> debbugs.gnu.org
Subject: Re: bug#63633: Emacs becomes unresponsive when trying to ssh into
 localhost (MacOS)
Date: Mon, 22 May 2023 21:25:16 +0200
Arteen Abrishami <arteen1000 <at> gmail.com> writes:

Hi Arteen,

> The trace I sent was under ā€˜*debug tramp*’. There is also another under *debug tramp/ssh cs111 <at> 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 <at> 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.




This bug report was last modified 1 year and 361 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.