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

Daniel Krajnik <[email protected]>
Newsgroups gmane.emacs.tramp
Message-ID <[email protected]>
 > 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 
<https://github.com/doomemacs/doomemacs/blob/master/docs/getting_started.org#pinning-packages-to-specific-commits> 
doesn't mention that you can use release number instead of the hash 
commit), but this broke emacs and I had to revert back (thankfully all 
is backed by btrfs' snapshots).

After restarting emacs daemon, I've tried to connect again (thinking 
that it's on version 2.6.1.1) and initially this time it worked.

It did however produce the same backtrace errors, which revealed that 
tramp is still on version 2.6.0.29.1.

So in the end it is working and it takes a bit of pressing TAB and ENTER 
to list the home directory - at the prompttramp still won't for example 
autocomplete subfolders, but you can navigate there with dired 
(activated by pressing ENTER).

If it is really still running on 2.6.0.29.1 it means that it could have 
worked before if I only tried fiddling with these keys a bit longer 
(I've never used tramp before). But maybe there is some inconsistency 
with the striaght.el's caches. I'm confused and the first PIN prompt may 
take 10-20 seconds to show up the first time, but at least it works now 
(hopefully it won't break when gpg-agent's lease expires).

> It is the "prompting PIN" text I'm interested in.

Because, ~/.gnupg/gpg-agent.conf was configured to use

pinentry-program /usr/bin/pinentry-gnome3

gtk3 for pinentry (it's necessary when working with gpg in thunderbird) 
there was not output in the terminal - just the typical graphical window 
appears and login succeeds.

Interestingly though if you change it to /usr/bin/pinentry (and restart 
gpg-agent) it fails:

sign_and_send_pubkey: signing failed for ED25519 "cardno:000F 73AE79E9" 
from agent: agent refused operation

I'm not sure why though?

On 08/09/2023 19:24, Michael Albinus wrote:
> Daniel Krajnik<[email protected]>  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 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.
> Yes, according to the backtrace it is helm where Tramp errs out. Well,
> you use "Emacs: 29.1 Tramp: 2.6.0.29.1". There has been major rework in
> file name completion, so it might be interesting to know, whether the
> recent Tramp 2.6.1.2 from GNU ELPA behaves better. Caution: There is an
> error in Emacs 29.1 which would prevent to install Tramp; read the
> instructions at<https://elpa.gnu.org/packages/tramp.html>.
>
>>> 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).
> It is the "prompting PIN" text I'm interested in.
>
> Best regards, Michael.
OpenPGP_0xCFC60FFCAAEC3A7D.asc (application/pgp-keys, 1.3 KB)
-----BEGIN PGP PUBLIC KEY BLOCK-----

xjMEZEwmuBYJKwYBBAHaRw8BAQdAUSPhBHvM5HVLqdnnA8UFqDYIWHxw1HlnUD4d
vvKhXFjNJkRhbmllbCBLcmFqbmlrIDxrcmFqbmlrLmRhbkBnbWFpbC5jb20+wpAE
ExYIADgWIQROikqEcL7GbFTtzbDPxg/8quw6fQUCZEwmuAIbAQULCQgHAgYVCgkI
CwIEFgIDAQIeAQIXgAAKCRDPxg/8quw6fUtVAP9He/b8gOLZa/tmVHIwU3sqJv9m
A95Wu8+DckHwPiPmngD9HIhe8IDS/CILzYKnLU05SoR7c8nXSY1JAnJp057uQAfO
MwRkTChFFgkrBgEEAdpHDwEBB0B3G+ZMHI5hXPw/ixIhVCGnb41SQF+flGXB8mnD
mVA+RMLANQQYFggAJhYhBE6KSoRwvsZsVO3NsM/GD/yq7Dp9BQJkTChFAhsCBQkB
4TOAAIEJEM/GD/yq7Dp9diAEGRYIAB0WIQQUEHvti7oyCbklIY8cJKqm/xtZBAUC
ZEwoRQAKCRAcJKqm/xtZBHStAQCeRXVN9X7BJmcjxEDe4cXP7pkHpidjjX4mr3TO
MJDZOQEAgmNhLJVjEREIQwyhw4Ws7VwWUaIyFPN1N/g0QtRGvAxkCQD5AVNx+V07
oTpOwdIZ/L4V+jK1c8VQaIA04ddLOMCyOC0BAOfb2WXu6iWxlrDqEoSgc8pC4tYq
lU7jO5VV7xQc7IoMzjgEZEwo3hIKKwYBBAGXVQEFAQEHQGOa8m4s8shclIl5F8SF
DN+2xg+vW1PZAqyo8nV8s7dPAwEIB8J+BBgWCAAmFiEETopKhHC+xmxU7c2wz8YP
/KrsOn0FAmRMKN4CGwwFCQHhM4AACgkQz8YP/KrsOn3fHAD+NqIqRUMm6Jxar0ck
KvBnhYWp+jBNLc71oZF4TJAsdhIA/RVutRg7GVFhAWl1om2cu2aZlAXBp6lWzUTg
+xEU7ZQNzjMEZEwpbxYJKwYBBAHaRw8BAQdAnmF552EV6XsamdaD7XNJiv0P071X
K5kaJxXwPRBaOFnCfgQYFggAJhYhBE6KSoRwvsZsVO3NsM/GD/yq7Dp9BQJkTClv
AhsgBQkB4TOAAAoJEM/GD/yq7Dp9C4oA/RIgCO4Sul8MRKIRzzP1TheByb6lEwqM
OFh7JvFwhuDBAP9b5uqNaYGN1Wik4XjguXFcICVrWf/NwcPpShPqoSpxAQ==
=UtN6
-----END PGP PUBLIC KEY BLOCK-----
OpenPGP_signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEARYIAB0WIQQUEHvti7oyCbklIY8cJKqm/xtZBAUCZPuF8wAKCRAcJKqm/xtZ
BMlaAQC1JJE2fXNzlArBfTqkBqhswU594pfyKKVJLXawsGd8QAD/bw4M789//27r
FYh9teidGEyzasSYWZ8SqWoG/rp3bQw=
=Qsws
-----END PGP SIGNATURE-----
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.