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]>
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 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.


On 08/09/2023 14:23, Michael Albinus wrote:
> Daniel Krajnik <[email protected]> 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.
backtrace (text/plain, 1.8 KB)
  backtrace()
  tramp-error(nil file-error "Timeout reached, see buffer ‘*tramp/ssh 128.40.123...")
  tramp-signal-hook-function(file-error ("Timeout reached, see buffer ‘*tramp/ssh 128.40.123..."))
  signal(file-error ("Timeout reached, see buffer ‘*tramp/ssh 128.40.123..."))
  tramp-maybe-open-connection((tramp-file-name "ssh" nil nil "128.40.123.56" nil "" nil))
  tramp-send-command((tramp-file-name "ssh" nil nil "128.40.123.56" nil "" nil) "echo ~ 2>/dev/null; echo tramp_exit_status $?")
  tramp-send-command-and-check((tramp-file-name "ssh" nil nil "128.40.123.56" nil "" nil) "echo ~")
  tramp-sh-handle-get-home-directory((tramp-file-name "ssh" nil nil "128.40.123.56" nil "" nil) "")
  apply(tramp-sh-handle-get-home-directory ((tramp-file-name "ssh" nil nil "128.40.123.56" nil "" nil) ""))
  tramp-sh-file-name-handler(tramp-get-home-directory (tramp-file-name "ssh" nil nil "128.40.123.56" nil "" nil) "")
  apply(tramp-sh-file-name-handler tramp-get-home-directory ((tramp-file-name "ssh" nil nil "128.40.123.56" nil "" nil) ""))
  tramp-file-name-handler(tramp-get-home-directory (tramp-file-name "ssh" nil nil "128.40.123.56" nil "" nil) "")
  tramp-get-home-directory((tramp-file-name "ssh" nil nil "128.40.123.56" nil "" nil) "")
  tramp-sh-handle-expand-file-name("/ssh:128.40.123.56:" nil)
  apply(tramp-sh-handle-expand-file-name ("/ssh:128.40.123.56:" nil))
  tramp-sh-file-name-handler(expand-file-name "/ssh:128.40.123.56:" nil)
  apply(tramp-sh-file-name-handler expand-file-name ("/ssh:128.40.123.56:" nil))
  tramp-file-name-handler(expand-file-name "/ssh:128.40.123.56:" nil)
  expand-file-name("/ssh:128.40.123.56:")
  find-file-noselect("/ssh:128.40.123.56:" nil nil t)
  find-file("/ssh:128.40.123.56:" t)
  funcall-interactively(find-file "/ssh:128.40.123.56:" t)
  call-interactively(find-file nil nil)
  command-execute(find-file)
debug-tramp-buffer-truncated (text/plain, 38.3 KB) - not displayed
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/xtZBAUCZPsnwQAKCRAcJKqm/xtZ
BK+BAP9F1XJx1rSIfFRq/q9cvIq7IdONGqOvrupeImzZpfk2OQD/f34tybAudElX
J1b+2tonDdKJ4dKT7Z4/iBgvqk3WZQk=
=c2HM
-----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.