Re: TRAMP hangs if remote login shell is fish
ID <[email protected]> Wed, 07 May 2025 00:00:07 +0800
| Newsgroups | gmane.emacs.tramp |
|---|---|
| Message-ID | <[email protected]> |
On 2025-05-06 17:15+0200, Michael Albinus <[email protected]> wrote: > Could you try this? Thanks for the reply. Unfortunately it still doesn't work, I started a new Fish config, which prompts only `$ ' no matter what, and the result is still the same. > If it doesn't work, please start a new Emacs session as > > --8<---------------cut here---------------start------------->8--- > # emacs -Q -l tramp --eval '(setq tramp-verbose 10)' > --8<---------------cut here---------------end--------------->8--- > > Rerun your test, and when it fails, send the corresponding debug buffer > here. So I ran the command you gave, and still no luck, a section of the debug buffer is attached (repeated parts are omitted). I suspect this issue has something to do with this line here: Last login: Tue May 6 23:49:25 2025 from 118.232.20.231 ]7;file://me308-arch/home/id]0;[me308-arch] ~$ = Is TRAMP printing those `file://...[me308-arch]' things, just before the actual prompt, or is it Fish doesn't take some kind of arguments passed by TRAMP? I don't observe such behaviour is the shell is Bash. I kinda have a hard time looking for how TRAMP actually establish and initiate the SSH connection, any hint on this is much appreciated. -- Best, ID
tramp.log
(text/plain, 5.7 KB)
Last login: Tue May 6 23:49:25 2025 from 118.232.20.231 ]7;file://me308-arch/home/id]0;[me308-arch] ~ $ = 23:49:45.406065 tramp-flush-connection-property (7) # locked 23:49:45.406131 tramp-get-connection-property (7) # process-buffer nil; cache used: t 23:49:45.406195 tramp-process-one-action (5) # Looking for regexp "\(.*\(?:login\|user\)\(?:[[:blank:]].*\)?:[[:blank:]]*\)\'" from remote shell 23:49:45.406249 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.406298 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.406608 tramp-process-one-action (5) # Looking for regexp "\(\(?:^.*\(\(?:adgangskode\|contrase\(?:\(?:ny\|ñ\)a\)\|decryption key\|encryption key\|geslo\|h\(?:\(?:asł\|esl\)o\)\|iphasiwedi\|jelszó\|l\(?:ozinka\|ösenord\)\|m\(?:ot de passe\|ật khẩu\)\|p\(?:a\(?:rola\|s\(?:ahitza\|s\(?: phrase\|code\|ord\|phrase\|wor[dt]\)\|vorto\)\)\|in\)\|s\(?:alasana\|enha\|laptažodis\)\|wachtwoord\|лозинка\|пароль\|ססמה\|كلمة السر\|गुप्तशब्द\|शब्दकूट\|গুপ্তশব্দ\|পাসওয়ার্ড\|ਪਾਸਵਰਡ\|પાસવર્ડ\|ପ୍ରବେଶ ସଙ୍କେତ\|கடவுச்சொல்\|సంకేతపదము\|ಗುಪ್ತಪದ\|അടയാളവാക്ക്\|රහස්පදය\|ពាក្យសម្ងាត់\|パスワード\|密[码碼]\|암호\)\).*[:៖︓﹕:]\0?[[:blank:]]*\)\)\'" from remote shell 23:49:45.406682 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.406728 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.406885 tramp-process-one-action (5) # Looking for regexp "\(\(?:^.*\(Verification code\).*[:៖︓﹕:][[:blank:]]*\)\)\'" from remote shell 23:49:45.406938 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.406985 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407049 tramp-process-one-action (5) # Looking for regexp "\(^.*\(?:Permission denied\|Timeout, server not responding\.\|Sorry, try again\.\|Name or service not known\|Host key verification failed\.\|Authentication failed\|No supported authentication methods left to try!\|Login \(?:[Ii]ncorrect\)\|Connection \(?:\(?:clo\|refu\)sed\)\|Received signal [[:digit:]]+\).*\)\'" from remote shell 23:49:45.407104 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407151 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407234 tramp-process-one-action (5) # Looking for regexp "\(^[^#$%> ]*[#$%>] *\)\'" from remote shell 23:49:45.407283 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407330 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407393 tramp-process-one-action (5) # Looking for regexp "\(\(?:^\| \)[^] #-%>]*#?[]#-%>][[:blank:]]*\)\'" from remote shell 23:49:45.407444 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407497 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407563 tramp-process-one-action (5) # Looking for regexp "\(Are you sure you want to continue connecting (yes/no\(?:/\[fingerprint]\)?)\?[[:blank:]]*\)\'" from remote shell 23:49:45.407614 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407660 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407714 tramp-process-one-action (5) # Looking for regexp "\(\(?:Store key in cache\? (y/n.*)\|Update cached key\? (y/n, Return cancels connection)\)[[:blank:]]*\)\'" from remote shell 23:49:45.407765 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407811 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407864 tramp-process-one-action (5) # Looking for regexp "\(\(?:TERM = (.*)\|Terminal type\? \[.*]\)[[:blank:]]*\)\'" from remote shell 23:49:45.407913 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.407959 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.408012 tramp-process-one-action (5) # Looking for regexp "\(Access granted\. Press Return to begin session\. \)\'" from remote shell 23:49:45.408059 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.408105 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.408157 tramp-process-one-action (5) # Looking for regexp "\(^ *Confirm user presence for key .*[ ]*\)\'" from remote shell 23:49:45.408204 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.408249 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.408304 tramp-process-one-action (5) # Looking for regexp "\(^ *\(Enter PIN for .*\)[ ]*\)\'" from remote shell 23:49:45.408351 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.408396 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.408448 tramp-process-one-action (5) # Looking for regexp "\(\)\'" from remote shell 23:49:45.408502 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.408547 tramp-get-connection-property (7) # check-remote-echo nil; cache used: nil 23:49:45.408598 tramp-process-one-action (5) # Call ‘tramp-action-process-alive’ 23:49:45.408645 tramp-get-connection-property (7) # locked nil; cache used: nil 23:49:45.408697 tramp-set-connection-property (7) # locked t 23:49:45.408767 tramp-accept-process-output (10) # *tramp/ssh me308* run nil