|
From: | Daniel Krajnik |
Subject: | Re: "Tramp failed to connect" to an ssh server (gpg as an ssh agent) |
Date: | Fri, 8 Sep 2023 18:02:13 +0100 |
User-agent: | Mozilla Thunderbird |
You are right, PS1 prompt variable was set outside of the "if [ "$color_prompt" = yes ]" statement. Putting it back in allowed for both the terminal emulators to keep the prompt colors and emacs tramp to login. This issue was also mentioned in the the manual and in this fairly popular stackoverflow question. I should have tried it sooner. Then I've tried connecting with all the emacs plugins loaded (Doom Emacs framework, helm), but sadly something is still giving a "tramp-error - wrong-type-argument "listp i". Do you know if there are other options to isolate emacs before loading all the plugins or any other ways to diagnose this problem? Just in case I've attached the tramp debug output again from this doom emacs session. > What is the shell output, if you call ssh -o ControlMaster=auto -o ControlPath=tramp.%C -o ControlPersist=no -e none 128.40.123.56 There is no output, ssh logs in correctly (after prompting PIN) with a regular prompt, letting you issue any command and logout normally (ctrl+d).
Daniel Krajnik <krajnik.dan@gmail.com> writes: Hi Daniel,Sure, please see the (truncated) debug buffer at log level 10.Yes, the debug buffer tells us more.This time emacs didn't unfreeze immediately after removing the gpg card. It prompted for the PIN and unfroze on the second attempt. I don't know exactly where these events appeared in the log (it's still almost 3 million lines long) and I didn't include them. If you think that they may be needed please let me know.Well, the discussion about the PIN isn't visible, likely in the suppressed traces. This might result in problems in the future. What is the shell output, if you call --8<---------------cut here---------------start------------->8--- # ssh -o ControlMaster=auto -o ControlPath=tramp.%C -o ControlPersist=no -e none 128.40.123.56 --8<---------------cut here---------------end--------------->8--- However,14:24:58.019684 tramp-send-command (6) # exec ssh -o ControlMaster=auto -o ControlPath=tramp.%C -o ControlPersist=no -e none 128.40.123.56 14:26:58.670118 tramp-process-actions (6) # [32m[[m[32muser1[m[31m@[m[32mhost1[m:[36m~[m[32m][m[32m$[mThis tells us the current truth. Your remote prompt contains color escape sequences, and Tramp dislikes them. Pls consult the Tramp manual how to suppress them. Best regards, Michael.
debug tramp-ssh 128.40.123.56
Description: Text document
OpenPGP_0xCFC60FFCAAEC3A7D.asc
Description: OpenPGP public key
OpenPGP_signature.asc
Description: OpenPGP digital signature
[Prev in Thread] | Current Thread | [Next in Thread] |