GNU bug report logs - #79103
31.0.50; Tramp ssh method doesn't work

Previous Next

Package: emacs;

Reported by: bernardo <bernardo.bacic <at> posteo.net>

Date: Sat, 26 Jul 2025 12:19:01 UTC

Severity: normal

Tags: notabug

Found in version 31.0.50

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

To reply to this bug, email your comments to 79103 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#79103; Package emacs. (Sat, 26 Jul 2025 12:19:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to bernardo <bernardo.bacic <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 26 Jul 2025 12:19:02 GMT) Full text and rfc822 format available.

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

From: bernardo <bernardo.bacic <at> posteo.net>
To: bug-gnu-emacs <at> gnu.org
Subject: 31.0.50; Tramp ssh method doesn't work
Date: Sat, 26 Jul 2025 06:01:36 +0000



$ emacs -Q
C-x C-f /ssh:192.168.1.12: RET

nothing happens for a long time, cursor changes shape to a spinning
circle

ssh in a terminal to the same host (on local LAN) works fine



In GNU Emacs 31.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 3.24.33, cairo version 1.16.0) of 2025-07-26 built on berubuntu-ep
Repository revision: c5f649441e2e055701c7bee811eaf266c4f0e7ce
Repository branch: master
Windowing system distributor 'The X.Org Foundation', version 11.0.12101004
System Description: Ubuntu 22.04.4 LTS

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GMP GNUTLS GPM GSETTINGS HARFBUZZ JPEG
LCMS2 LIBOTF LIBSELINUX LIBSYSTEMD LIBXML2 M17N_FLT MODULES NOTIFY
INOTIFY PDUMPER PNG RSVG SECCOMP SOUND SQLITE3 THREADS TIFF
TOOLKIT_SCROLL_BARS TREE_SITTER WEBP X11 XDBE XIM XINERAMA XINPUT2 XPM
XRANDR GTK3 ZLIB

Important settings:
  value of $LC_ALL: en_AU.UTF-8
  value of $LANG: en_AU.UTF-8
  value of $XMODIFIERS: @im=ibus
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  show-paren-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  indent-tabs-mode: t
  transient-mark-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug lisp-mnt message mailcap yank-media puny
dired dired-loaddefs rfc822 mml mml-sec epa derived epg rfc6068
epg-config gnus-util text-property-search mm-decode mm-bodies mm-encode
mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047
rfc2045 ietf-drums mm-util mail-prsvr mail-utils misearch multi-isearch
pp cl-extra cl-print tramp-androidsu tramp-adb tramp-archive
tramp-container tramp-ftp tramp-gvfs zeroconf url-util url-parse
url-vars dbus xml thingatpt help-fns radix-tree tramp-cmds tramp-cache
time-stamp tramp-sh tramp rx trampver tramp-integration files-x
tramp-message help-mode tramp-compat xdg shell pcomplete comint ansi-osc
ring parse-time iso8601 time-date format-spec auth-source cl-seq eieio
eieio-core cl-macs icons password-cache json subr-x map byte-opt gv
bytecomp byte-compile ansi-color tramp-loaddefs cl-loaddefs cl-lib rmc
iso-transl tooltip cconv eldoc paren electric uniquify ediff-hook
vc-hooks lisp-float-type elisp-mode mwheel term/x-win x-win
term/common-win x-dnd touch-screen tool-bar dnd fontset image regexp-opt
fringe tabulated-list replace newcomment text-mode lisp-mode prog-mode
register page tab-bar menu-bar rfn-eshadow isearch easymenu timer select
scroll-bar mouse jit-lock font-lock syntax font-core term/tty-colors
frame minibuffer nadvice seq simple cl-generic indonesian philippine
cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao
korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech
european ethiopic indian cyrillic chinese composite emoji-zwj charscript
charprop case-table epa-hook jka-cmpr-hook help abbrev obarray oclosure
cl-preloaded button loaddefs theme-loaddefs faces cus-face macroexp
files window text-properties overlay sha1 md5 base64 format env
code-pages mule custom widget keymap hashtable-print-readable backquote
threads dbusbind inotify lcms2 dynamic-setting system-font-setting
font-render-setting cairo gtk x-toolkit xinput2 x multi-tty move-toolbar
make-network-process tty-child-frames emacs)

Memory information:
((conses 16 95539 9775) (symbols 48 10072 0) (strings 32 32249 2936)
 (string-bytes 1 857133) (vectors 16 18789)
 (vector-slots 8 194894 6797) (floats 8 61 733) (intervals 56 1169 1)
 (buffers 1064 12))







Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79103; Package emacs. (Sat, 26 Jul 2025 12:40:02 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: bernardo <bernardo.bacic <at> posteo.net>
Cc: 79103 <at> debbugs.gnu.org
Subject: Re: bug#79103: 31.0.50; Tramp ssh method doesn't work
Date: Sat, 26 Jul 2025 14:39:20 +0200
bernardo <bernardo.bacic <at> posteo.net> writes:

Hi,

> $ emacs -Q
> C-x C-f /ssh:192.168.1.12: RET
>
> nothing happens for a long time, cursor changes shape to a spinning
> circle

Not reproducible here. Can you interrupt it with C-g?

Could you please call 

--8<---------------cut here---------------start------------->8---
# src/emacs -Q -l tramp --eval '(setq tramp-verbose 10)' /ssh:192.168.1.12:
--8<---------------cut here---------------end--------------->8---

Which messages do you see in the *Messages* buffer? Is there a buffer
*debug tramp/ssh 192.168.1.12*? Can you show its contents (pls send as attachment)?

Best regards, Michael.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79103; Package emacs. (Sun, 27 Jul 2025 10:13:02 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: 79103 <at> debbugs.gnu.org
Subject: [Michael Albinus] Re: bug#79103: 31.0.50; Tramp ssh method doesn't
 work
Date: Sun, 27 Jul 2025 12:12:01 +0200
Please keep always 79103 <at> debbugs.gnu.org in Cc.

-------------------- Start of forwarded message --------------------
From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bernardo <bernardo.bacic <at> posteo.net>
Subject: Re: bug#79103: 31.0.50; Tramp ssh method doesn't work
Date: Sun, 27 Jul 2025 12:08:46 +0200

Bernardo <bernardo.bacic <at> posteo.net> writes:

> Hi Michael,

Hi Bernardo,

> have 3 Tramp related buffers: (UPDATE: just noticed you said attachment
> is preferred, so a tarball of 3 files is attached)

Thanks. This tells us the story:

--8<---------------cut here---------------start------------->8---
> 12:27:05.064786 tramp-start-process (6) # /bin/sh -i
> 12:27:05.065023 tramp-accept-process-output (10) # #<process *tramp/ssh 192.168.20.12*> run t
> \[\033[1;36m\]\h:\W$\[\033[0m\] 
--8<---------------cut here---------------end--------------->8---

Your prompt on the local machine contains escape sequences, which Tramp
does not understand. Could you please ensure that it doesn't happen? See
the Tramp manual for recipes, best would be to check for $TERM being 'dumb'.

Best regards, Michael.
-------------------- End of forwarded message --------------------




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79103; Package emacs. (Sun, 27 Jul 2025 10:15:02 GMT) Full text and rfc822 format available.

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

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bernardo <bernardo.bacic <at> posteo.net>
Cc: 79103 <at> debbugs.gnu.org
Subject: Re: bug#79103: 31.0.50; Tramp ssh method doesn't work
Date: Sun, 27 Jul 2025 12:13:58 +0200
Bernardo <bernardo.bacic <at> posteo.net> writes:

Hi Bernardo,

> ah, need another coffee - missed your question about *Messages* buffer;
> it's contents might contain a clue - just noticed "Waiting for git" line
>
> For information about GNU Emacs and the GNU system, type C-h C-a.
> Waiting for git... [2 times]
> Quit: ""

Thanks. However, I believe this isn't the problem here. See my other
message for analysis.

Best regards, Michael.




Reply sent to Michael Albinus <michael.albinus <at> gmx.de>:
You have taken responsibility. (Sun, 27 Jul 2025 11:30:02 GMT) Full text and rfc822 format available.

Notification sent to bernardo <bernardo.bacic <at> posteo.net>:
bug acknowledged by developer. (Sun, 27 Jul 2025 11:30:02 GMT) Full text and rfc822 format available.

Message #19 received at 79103-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bernardo Bacic <bernardo.bacic <at> posteo.net>
Cc: 79103-done <at> debbugs.gnu.org
Subject: Re: bug#79103: 31.0.50; Tramp ssh method doesn't work
Date: Sun, 27 Jul 2025 13:29:33 +0200
Bernardo Bacic <bernardo.bacic <at> posteo.net> writes:

Hi Bernardo,

> It's a bit odd as this setup has been in place for a long time but has
> caused the problem only now; i can live without colours (or temporarily
> disabling them). Had a misconception that PS1 settings on the *target*
> host are important and have accordingly stripped it down to bare minimum
> but with no effect.

PS1 setting is relevant for both the local and remote case.

> Thanks for your help, guess the case is closed.

Yep, I'm closing it.

Best regards, Michael.




Added tag(s) notabug. Request was from Michael Albinus <michael.albinus <at> gmx.de> to control <at> debbugs.gnu.org. (Sun, 27 Jul 2025 11:31:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79103; Package emacs. (Sun, 27 Jul 2025 12:09:02 GMT) Full text and rfc822 format available.

Message #24 received at 79103-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bernardo Bacic <bernardo.bacic <at> posteo.net>
Cc: 79103-done <at> debbugs.gnu.org
Subject: Re: bug#79103: 31.0.50; Tramp ssh method doesn't work
Date: Sun, 27 Jul 2025 14:08:18 +0200
[Message part 1 (text/plain, inline)]
Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi Bernardo,

>> It's a bit odd as this setup has been in place for a long time but has
>> caused the problem only now; i can live without colours (or temporarily
>> disabling them). Had a misconception that PS1 settings on the *target*
>> host are important and have accordingly stripped it down to bare minimum
>> but with no effect.
>
> PS1 setting is relevant for both the local and remote case.
>
>> Thanks for your help, guess the case is closed.
>
> Yep, I'm closing it.

Just one test, please. Could you apply the appended patch to your Emacs?
Hopefully, the behavior will be as before, and you don't need to worry
about setting the local PS1.

Best regards, Michael.

[Message part 2 (text/x-patch, attachment)]

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#79103; Package emacs. (Sun, 27 Jul 2025 17:44:02 GMT) Full text and rfc822 format available.

Message #27 received at 79103-done <at> debbugs.gnu.org (full text, mbox):

From: Michael Albinus <michael.albinus <at> gmx.de>
To: Bernardo Bacic <bernardo.bacic <at> posteo.net>
Cc: 79103-done <at> debbugs.gnu.org
Subject: Re: bug#79103: 31.0.50; Tramp ssh method doesn't work
Date: Sun, 27 Jul 2025 19:43:49 +0200
Michael Albinus <michael.albinus <at> gmx.de> writes:

Hi Bernardo,

> Just one test, please. Could you apply the appended patch to your Emacs?
> Hopefully, the behavior will be as before, and you don't need to worry
> about setting the local PS1.

My regression tests have shown a glitch in that patch. So I have pushed
an updated version of the patch to master. Pls test this instead.

Best regards, Michael.




This bug report was last modified 20 days ago.

Previous Next


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