Re: TRAMP hangs if remote login shell is fish
ID <[email protected]> Thu, 08 May 2025 21:33:53 +0800
| Newsgroups | gmane.emacs.tramp |
|---|---|
| Message-ID | <[email protected]> |
On 2025-05-08 13:36+0200, Michael Albinus <[email protected]> wrote: >> 01:13:14.257307 tramp-send-command (6) # exec ssh -o ControlMaster=auto -o ControlPath=/home/id/.cache/emacs/tramp.%C -o ControlPersist=no -e none me308 || exit > > This calls your login shell (fish), and it doesn't set the TERM > environment yet. As a result, we see this prompt: > >> 01:13:28.452464 tramp-accept-process-output (10) # *tramp/ssh me308* run nil >> >> Last login: Wed May 7 01:12:55 2025 from 118.232.20.231 >> ]7;file://me308-arch/home/id]0;[me308-arch] ~$ = > > You have the option to modify tramp-shell-prompt-pattern > accordingly. But there is a more simple alternative: Use '/sshx:me308:' > instead of '/ssh:me308:'. This open '/bin/sh -i', and avoids your login > shell. > > Best regards, Michael. I see, thanks for the help :) -- Best, ID