From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dima Kogan Newsgroups: gmane.emacs.bugs Subject: bug#49714: 28.0.50; TRAMP burns CPU and has insufficient user reporting when using xxxx-sk SSH keys Date: Fri, 23 Jul 2021 15:05:59 -0700 Message-ID: <87o8asu1mg.fsf@jpl.nasa.gov> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="29829"; mail-complaints-to="usenet@ciao.gmane.io" To: 49714@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jul 24 00:07:12 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1m73K3-0007bM-Eq for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 24 Jul 2021 00:07:12 +0200 Original-Received: from localhost ([::1]:45428 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m73K2-00042Z-Cm for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 23 Jul 2021 18:07:10 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60792) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m73Ju-00042I-Se for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2021 18:07:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:33279) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m73Ju-000353-LS for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2021 18:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m73Ju-0003hm-EU for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2021 18:07:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dima Kogan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Jul 2021 22:07:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 49714 X-GNU-PR-Package: emacs X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.162707797214156 (code B ref -1); Fri, 23 Jul 2021 22:07:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Jul 2021 22:06:12 +0000 Original-Received: from localhost ([127.0.0.1]:44822 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m73J6-0003gF-Fd for submit@debbugs.gnu.org; Fri, 23 Jul 2021 18:06:12 -0400 Original-Received: from lists.gnu.org ([209.51.188.17]:32928) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m73J2-0003g6-ES for submit@debbugs.gnu.org; Fri, 23 Jul 2021 18:06:12 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60602) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m73J2-000407-6T for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2021 18:06:08 -0400 Original-Received: from wout1-smtp.messagingengine.com ([64.147.123.24]:56907) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m73Ix-0002Kv-Id for bug-gnu-emacs@gnu.org; Fri, 23 Jul 2021 18:06:07 -0400 Original-Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.west.internal (Postfix) with ESMTP id CD1DB3200911 for ; Fri, 23 Jul 2021 18:06:01 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Fri, 23 Jul 2021 18:06:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=secretsauce.net; h=from:to:subject:date:message-id:mime-version:content-type; s= fm3; bh=H3FflpOSNecpkKbjssymnN17VLJ2sUWBbLy+s6z6A2Y=; b=EfmruUU/ de/aiNGMol4uAzqba0zo8VrLvLHWlpp5OwRNi/xvtmzH28+Gzt4XvCLA9S5QOb0R SWGm++ntI88jRHt3SfSb6/eBdO9zkP4t7RiRppbXmRmPur8H15QaH0gy48Wxm+N7 n90dG8X1Cjd4szq1QT2dPADjMCuLRnSJ73WGutWmFEoqMm5L3wkiXDguTkxvRdcK XVPUEal7UhhaxhkR/5W4y68o4cWesWopkL/bsIQxIJ843uTOi19p9hDDhiCvU9+X ZNkNEewguCpCnZczOAQOpb/mSeBpxfcKbFM6G9+MzSaROIQjAMyFfLLP+oQwdG18 FFKeah10BPrFPw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:message-id :mime-version:subject:to:x-me-proxy:x-me-proxy:x-me-sender :x-me-sender:x-sasl-enc; s=fm3; bh=H3FflpOSNecpkKbjssymnN17VLJ2s UWBbLy+s6z6A2Y=; b=jCgnbxbckjnQ2AqwBPuAzZp/FctxwG1hqYyVJle6ghlTx 3vTgE4SY47stZ7BT+5Wmp9tWRrR6XwOgUvZdsnk8VUabsk0YjJ2JrUmmjWxY0flz EnxvVZJs9H0XAPsBV+fAorx4TUHCHjmmBtIeccKG79j0VHk1ZpYMEyz95C5ddvrp Tn5DGzHQ+0vxQGpdO7VGDxGZkiXTBqnsUDr41Q6wRPrjLYyJtMKr9UGuK6xA0SSC +3EndwMdAnY1790b7Rjf69po7XVq5T3DrLqrDWG8Ww/I+7aidO1F76SYptdeBxNK e6c0i1IG6bjiDTtvhyFNhBHVv0SxEhVPhxx2G9HFw== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrfeelgddtiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecufghrlhcuvffnffculddquddtmdenucfjughrpefhvf fufffkgggtsehttdertddttddtnecuhfhrohhmpeffihhmrgcumfhoghgrnhcuoeguihhm rgesshgvtghrvghtshgruhgtvgdrnhgvtheqnecuggftrfgrthhtvghrnhepffdvffduhf ekfffhieefhfffvddtgfefjeevuedvfedujeejudevfedtgeeguedvnecuvehluhhsthgv rhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepughimhgrsehsvggtrhgvth hsrghutggvrdhnvght X-ME-Proxy: Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Fri, 23 Jul 2021 18:06:01 -0400 (EDT) Received-SPF: pass client-ip=64.147.123.24; envelope-from=dima@secretsauce.net; helo=wout1-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:210616 Archived-At: 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