From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Albinus 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: Wed, 28 Jul 2021 22:07:06 +0200 Message-ID: <87mtq6rymt.fsf@gmx.de> References: <87o8asu1mg.fsf@jpl.nasa.gov> <87zgubr31n.fsf@secretsauce.net> <87pmv7o9hn.fsf@gmx.de> <87wnpfr25i.fsf@secretsauce.net> <87tukjr1lq.fsf@secretsauce.net> <87eebnmqty.fsf@gmx.de> <87lf5vqya5.fsf@secretsauce.net> <87o8aqwp1v.fsf@gmx.de> <874kciqfuv.fsf@secretsauce.net> <87bl6puql6.fsf@gmx.de> <87h7ggpb4k.fsf@secretsauce.net> <87pmv4td2v.fsf@gmx.de> <8735s0p260.fsf@secretsauce.net> <87lf5st3b2.fsf@gmx.de> <87tukfobxa.fsf@secretsauce.net> <878s1rttfc.fsf@gmx.de> <87czr3o497.fsf@secretsauce.net> <874kcftol2.fsf@gmx.de> <87a6m7nzv0.fsf@secretsauce.net> <87zgu6sy7r.fsf@gmx.de> <87k0lamcql.fsf@secretsauce.net> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="10067"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: 49714@debbugs.gnu.org To: Dima Kogan Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Wed Jul 28 22:08:53 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 1m8prJ-0002Sr-3A for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Jul 2021 22:08:53 +0200 Original-Received: from localhost ([::1]:55266 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m8prH-0006J2-9S for geb-bug-gnu-emacs@m.gmane-mx.org; Wed, 28 Jul 2021 16:08:51 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:41200) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m8pqU-0005ds-8d for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2021 16:08:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:44372) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m8pqU-0003RL-0u for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2021 16:08:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m8pqT-00011z-Sk for bug-gnu-emacs@gnu.org; Wed, 28 Jul 2021 16:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Albinus Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 28 Jul 2021 20:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49714 X-GNU-PR-Package: emacs Original-Received: via spool by 49714-submit@debbugs.gnu.org id=B49714.16275028453908 (code B ref 49714); Wed, 28 Jul 2021 20:08:01 +0000 Original-Received: (at 49714) by debbugs.gnu.org; 28 Jul 2021 20:07:25 +0000 Original-Received: from localhost ([127.0.0.1]:55918 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8ppt-00010y-5m for submit@debbugs.gnu.org; Wed, 28 Jul 2021 16:07:25 -0400 Original-Received: from mout.gmx.net ([212.227.17.21]:48013) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m8ppr-00010i-6f for 49714@debbugs.gnu.org; Wed, 28 Jul 2021 16:07:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1627502828; bh=TvFtHT/MmOGIv4c3mAIVqHwDT1QcjeSR87omNDhIPIA=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=Zw1qz+C/BZWZYenZd6mfLpf1FA9rx2VsfsBaqgKeqw5DSyi1WRd5v+2YbCezCrxT+ hN1Om8tEEF/Tlt2BJpgWNc668cig2zCQlg4iz83R9P4wDnBvXm6KRI2a/FasL+eQmn rJEpHfuWijsM+wEdmBg8gdxDthtEtUq0+gUeIo4o= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Original-Received: from gandalf.gmx.de ([79.140.119.254]) by mail.gmx.net (mrgmx105 [212.227.17.168]) with ESMTPSA (Nemesis) id 1Mk0NU-1msqod3YTo-00kOfU; Wed, 28 Jul 2021 22:07:07 +0200 In-Reply-To: <87k0lamcql.fsf@secretsauce.net> (Dima Kogan's message of "Wed, 28 Jul 2021 12:58:58 -0700") X-Provags-ID: V03:K1:peXLpzuUuCquiAmz7Sg7hw/Dq3he/nJTf4glBDTU+/KbwkQI2MO xqO9M+5QzYhVPbOCOmGR6PkE12wuHvzgO+h8pV86dW4PQLeNGW843y1KEUjY+jcSV1uTQNw s2H3TwS0/3ewlMQaUBFmWgs+8Htzg6hoydi0n8km6ZoJOY9DJyPS1ZMh4CWcNvLJP9he7Pp PZd/FW6CeqcRjeix3qBdw== X-UI-Out-Filterresults: notjunk:1;V03:K0:EzcUBqHNKRs=:FKL8vodxE20B4bIpCTTpYE 9f944HOBd+Sg/jjGRU+pvCAovfZrHVyMH3QGJkY8jWhV0qvUgxTwefvi6k0/HMZKBunhiPBG6 XdPcOKOdbfJ9RJfXYIYOIFkPVekcXRP1EeIG46UIl1bdwK4pmIECPg4ezrOvyLa4QoJp9UdSc TjrgC4gSQrigVz4HpBZ9g6WuPv+Fprws8UNrVtDwh0cqEZaae0GGrZ14Dk8k78rr3N3H64UGP L8TkFW9Oa8qoED9gkBGkoBI9IoBs3z6aruChrjXRhKmzQoXbpqYcGBp1JvlsBDjGA8Y8IHrWI +UCYsawGSijShjfxtA1BcjJQ6/oh3BQ/MNAPv8uWc3RM6bhwooZ/6V8gVb5f5JZW14DRVK+FH rFnqoQJdqauflF7OVsGrPl0fzncerT2J3vJy4HZhr45hckZOG59858WzEEJ1tnJC8okozUQ+I jCzxMKuZVAYWefV6pjRu0kJDvLuFssAyWYbzZ6NDnzNQW1IOCj8qUsuQdC/2sBtM+WISqPrVo gadJj15Ytf1eVfh8lWr833X7tpYr/TnH027kbX+pkfGROGHJ9T146o+mzpYJCTfEc77juv4ii P4q1cWWCOR2fFD8l+nAYjzkra24cRZpV8enzCK7toyO9cOgVDrrdQ3x1S3gnWq2g/rSVJ+Ine HpTnIsRaHipEJMrFw6fD6f5kWjPY4wR+WrYhU7sUDx3VUpDG+9y1oKHR0DcYx2Zb7gFUc0Z9j y+wPDFk8Qe4gddq1L1u2sH4ZdWcTSzUc0fjAjInPWufshYk6gokZW8Aopbd/cJU/MbnIudyb 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:210844 Archived-At: Dima Kogan writes: Hi Dima, >> Well, while you see the message, Tramp is looping with >> accept-process-output in order to check, whether the yubikey has been >> pressed. This is not different from everything else Tramp does, until >> the remote shell prompt has been detected. So I don't see what we >> could do otherwise ... > > I understand this argument. However, as a user, I would fully expect > emacs to behave the same way while it's waiting for the passphrase as it > does when waiting for me to touch the yubikey. Currently the passphrase > input stage feels normal, while the wait-for-touch stage feels frozen. > On a deeper level, in both cases we're waiting for some specific data to > come from an OS file descriptor: either something ultimately connected > to the keyboard, or the ssh process. Maybe this isn't worth the effort > to fix, but it is a problem. I have no idea how annoying this is. I plan to buy a yubikey next days, this will give me the chance to play with. And maybe to fix it. >> Btw, there is a timeout of 30 seconds. When you don't press the >> yubikey during this time, Tramp shall cancel the authentication >> process. Perhaps you could give this also a short test? > > Yes. Let me do that later today. The passphrase query itself (from ssh, > unrelated to emacs) has some timeout too, which maybe expires before 30 > sec. I will check. Thanks! > Thanks so much for implementing this! Best regards, Michael.