Re: "Tramp failed to connect" to an ssh server (gpg as an ssh agent)

Michael Albinus <[email protected]>
Newsgroups gmane.emacs.tramp
Message-ID <[email protected]>
Daniel Krajnik <[email protected]> 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$[m

This 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.