unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys
@ 2021-07-23 22:05 Dima Kogan
  2021-07-24 12:02 ` Michael Albinus
  0 siblings, 1 reply; 21+ messages in thread
From: Dima Kogan @ 2021-07-23 22:05 UTC (permalink / raw)
  To: 49714

Hi.

I have a yubikey, a hardware encryption device. For the purposes of SSH,
the SSH private key is split betweek a file on disk (.ssh/id_ed25519_sk)
and some data on the yubikey. When logging into an SSH server, the
interaction generally looks like this:

  client$ ssh ADDRESS

  Enter passphrase for key '/home/dima/.ssh/id_ed25519_sk':
  [the user enters the passphrase; not echoed to the console]

  Confirm user presence for key ED25519-SK XXXXXXXXXXXXXXX
  [the user physically touches the yubikey with their finger]

  server$
  [we are logged-in]

In TRAMP it looks like this:

   C-x C-f
   /ssh:ADDRESS:

   [Emacs asks for the passphrase. This is good]

   [Now we have a problem]

Emacs now spins the CPU, saying nothing. Internally, ssh is asking for
the user to touch the yubikey, but TRAMP is not communicating this
information. I know I should touch the yubikey, and if I do that, TRAMP
succeeds. There are two bugs here:

1. Emacs should not be spinning the CPU. This is actually an old bug. I
   usually see this with normal SSH connections, but it only happens
   during the login sequence, which isn't very long. In THIS case the
   login sequence could be longer. In any case, we shouldn't be
   spinning.

2. Emacs should relay whatever ssh is saying (i.e. "Confirm user
   presence...") to the user

Thanks!





I'm using emacs built from source on 2021-07-16. I'm pretty sure the 





^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2021-09-09 18:00 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-07-23 22:05 bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys Dima Kogan
2021-07-24 12:02 ` Michael Albinus
2021-07-24 18:15   ` Dima Kogan
2021-07-24 18:24     ` Michael Albinus
2021-07-24 18:35       ` Dima Kogan
2021-07-24 18:44         ` Michael Albinus
2021-07-24 18:52           ` Dima Kogan
2021-07-25 12:37             ` Michael Albinus
     [not found]         ` <87tukjr1lq.fsf@secretsauce.net>
     [not found]           ` <87eebnmqty.fsf@gmx.de>
     [not found]             ` <87lf5vqya5.fsf@secretsauce.net>
     [not found]               ` <87o8aqwp1v.fsf@gmx.de>
     [not found]                 ` <874kciqfuv.fsf@secretsauce.net>
     [not found]                   ` <87bl6puql6.fsf@gmx.de>
     [not found]                     ` <87h7ggpb4k.fsf@secretsauce.net>
     [not found]                       ` <87pmv4td2v.fsf@gmx.de>
     [not found]                         ` <8735s0p260.fsf@secretsauce.net>
     [not found]                           ` <87lf5st3b2.fsf@gmx.de>
     [not found]                             ` <87tukfobxa.fsf@secretsauce.net>
     [not found]                               ` <878s1rttfc.fsf@gmx.de>
     [not found]                                 ` <87czr3o497.fsf@secretsauce.net>
     [not found]                                   ` <874kcftol2.fsf@gmx.de>
     [not found]                                     ` <87a6m7nzv0.fsf@secretsauce.net>
2021-07-28  7:18                                       ` Michael Albinus
2021-07-28 19:58                                         ` Dima Kogan
2021-07-28 20:07                                           ` Michael Albinus
2021-07-28 20:12                                             ` Dima Kogan
2021-08-03 20:16                                           ` Michael Albinus
2021-08-08  5:41                                             ` Dima Kogan
2021-08-08 14:21                                               ` Michael Albinus
2021-08-13 19:18                                                 ` Dima Kogan
2021-08-16 19:50                                                   ` Michael Albinus
     [not found]                                                     ` <87eeat414c.fsf@gmx.de>
     [not found]                                                       ` <87lf4x5ork.fsf@secretsauce.net>
2021-08-22 13:06                                                         ` Michael Albinus
2021-09-09 13:58                                                           ` Michael Albinus
2021-09-09 18:00                                                           ` Dima Kogan
2021-07-24 18:30     ` Michael Albinus

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).