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

2023-09-09 Thread Daniel Krajnik
No worries, thanks to your suggestion about bash prompt escape characters and all the diligent review of the logs and other issues I was able to get tramp to work. Thank you very much for that! Also thank you for suggesting the mailing list - it's a really effective form of communication.

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

2023-09-09 Thread Michael Albinus
Daniel Krajnik writes: Hi Daniel, > Thank you, this confirmed that the tramp version is shipped by the > emacs system pacakge (/usr/share/emacs/29.1/lisp/net/tramp.elc) and > not the doom framework (~/.config/emacs) like I originally thought (I > might have looked at the "other versions" field

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

2023-09-09 Thread Daniel Krajnik
> check where Tramp is started from, by 'M-x locate-library RET tramp'. Thank you, this confirmed that the tramp version is shipped by the emacs system pacakge (/usr/share/emacs/29.1/lisp/net/tramp.elc) and not the doom framework (~/.config/emacs) like I originally thought (I might have

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

2023-09-09 Thread Michael Albinus
Daniel Krajnik writes: Hi Daniel, > Thank you, I've upgraded doom's packages to the latest version, which > bumped tramp up to version 2.6.1.1. > > I've tried looking for a way to upgrade it to 2.6.1.2 (package is > managed by straight.el and doom's documentation doesn't mention that > you can

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

2023-09-08 Thread Daniel Krajnik
> There has been major rework in file name completion Thank you, I've upgraded doom's packages to the latest version, which bumped tramp up to version 2.6.1.1. I've tried looking for a way to upgrade it to 2.6.1.2 (package is managed by straight.el and doom's documentation

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

2023-09-08 Thread Michael Albinus
Daniel Krajnik writes: Hi Daniel, > 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

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

2023-09-08 Thread Michael Albinus
Daniel Krajnik 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

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

2023-09-08 Thread Daniel Krajnik
Sure, please see the (truncated) debug buffer at log level 10. This time there was also a debug backtrace. Both attached. Sorry for sending the log inline in the last email and thanks for pointing that out - I wasn't sure about it myself. This time emacs didn't unfreeze immediately after

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

2023-09-08 Thread Michael Albinus
Daniel Krajnik writes: > Apologies Micheal for sending this message twice - I'm new to mailing > lists and I forgot to add CC. Sorry, I've seen this later only. So you're brave and keep the Cc :-) Best regards, Michael.

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

2023-09-08 Thread Michael Albinus
Daniel Krajnik writes: Hi Daniel, > Thank you, it seems to get stuck on a few tramp functions freezing > emacs - however it returns after I physically remove the gpg smart > card. Please see the truncated output from the debug buffer: Please send next time the debug buffer as attachment, and

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

2023-09-08 Thread Daniel Krajnik
Apologies Micheal for sending this message twice - I'm new to mailing lists and I forgot to add CC. Thank you, it seems to get stuck on a few tramp functions freezing emacs - however it returns after I physically remove the gpg smart card. Please see the truncated output from the debug buffer

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

2023-09-08 Thread Michael Albinus
Daniel Krajnik writes: > Hi Hi Daniel, > I'm wondering if anyone is able to use Tramp with a gpg smart card or > a gpg agent that manages the ssh socket (so acts as an ssh agent)? > > For me it fails with file-error "Tramp failed to connect. If this > happens repeatedly, try\n ‘M-x

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

2023-09-07 Thread Daniel Krajnik
Hi I'm wondering if anyone is able to use Tramp with a gpg smart card or a gpg agent that manages the ssh socket (so acts as an ssh agent)? For me it fails with |file-error "Tramp failed to connect. If this happens repeatedly, try\n ‘M-x tramp-cleanup-this-connection’"))"| I tried