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.help Subject: Re: Multi-hop access keeps asking for password on second machine Date: Tue, 19 Nov 2024 09:48:10 +0100 Message-ID: <87bjyb8v91.fsf@gmx.de> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="34630"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: help-gnu-emacs@gnu.org To: Luiz =?utf-8?Q?Rom=C3=A1rio?= Santana Rios Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Tue Nov 19 09:48:58 2024 Return-path: Envelope-to: geh-help-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 1tDJus-0008pi-SW for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 19 Nov 2024 09:48:58 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tDJuE-0006dr-Vp; Tue, 19 Nov 2024 03:48:19 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDJuD-0006di-CA for help-gnu-emacs@gnu.org; Tue, 19 Nov 2024 03:48:17 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tDJuB-0004JX-KB for help-gnu-emacs@gnu.org; Tue, 19 Nov 2024 03:48:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.de; s=s31663417; t=1732006090; x=1732610890; i=michael.albinus@gmx.de; bh=e0LfzNl0INqFbgxIA+Mt/Z+6hfhosni/W+twJpRRENc=; h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date: Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=qrMopg3OsMxYyKphL6xK4QZaNJsIKW4N1aZc+ZQJXtJsWC6rz9YIawXHlncKxv4X vrReK3Nv7h6GRqxxXJS3l2vwmv1ohDG+TGj2Yt1HL3gLJgUAsdc0g2MLM5MdVefwC mUxRw+Hz3jf+cI93nqup16DpYjPd0lUX9Rz2OhdPCVNR3q3L1M0Hson1snvVeUxr5 aX7rnk1pNcScKcb3tIZiPBZRS4cpdmRHk1TNHVBYjXMQgf6xtoKedMpZ7BDpBsI5l R9V99EBC+yd3tk/03/+GUr+U2BXtDGvUFpPugJG3kU3miT65dQzUWYmNdkCVehdta oXuVj9w06U//FRZZfQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Original-Received: from gandalf.gmx.de ([185.89.38.155]) by mail.gmx.net (mrgmx005 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mg6e4-1tfVFk2cL0-00lXOD; Tue, 19 Nov 2024 09:48:10 +0100 In-Reply-To: ("Luiz =?utf-8?Q?Rom=C3=A1rio?= Santana Rios"'s message of "Mon, 18 Nov 2024 18:06:40 -0300") X-Provags-ID: V03:K1:WK/Xv4SAPn78YDx5VyrhmRaQJYzQrXopYGQ4NZYTcCKe3JKDXcm GD90Ne8SHrjJOjdrontxTeNpgPyP2exMFrhkaSOMDs94b9r3S1AzRUWZ+rh3s8N+45KOpv1 +amTpU13V1Ui3qRPhx2bWDIKcL2mBqrAhyXtK+pKlQ+EXHjknpLfQ3j+6+oejhYzseGISVY 7m/URmsghUsLmboQxdbIQ== UI-OutboundReport: notjunk:1;M01:P0:EdRCzmYLWJg=;0PO63yPQO3LvfLGNqF8jvmh1r5m xizMSoJ9to+8RxGPHDuEqe9CG37Qj9myoDBuQe/+0nK85sdJSD/mmgqi+X6ZV8LySW3CjBjjB uiFDa+KCoN+VafJxhr6LqH2C5Jlyk93O1WbzW+ReHGpA+hyH3dp2gXG37SHeQyZlkl963clMG s7zc5kji5kZk8DVoPE9DFs7sykdMh5iykIbflIdFwUVh9vV5ew0LkJxAOulZmi4fcWDBc/zWj J2n4k/oKSlL5Yf/8Phwzb8gRRc8CX1XK6jpNZ0t+1Cqqfpxw1P6qFN1mVXm4ud2BthUK4WNmv Ytee8bZLHq65Yl82OJwZzuxv7H/3VlOOzexkuxS7OcYorvnlbSecEU/yocRsy10Ep9mYT5Z4c 78GkEiXmpKkPaUmtjq1v9SxagMU4LTG6I/YGYH23+5lD1lTnhddmKjh5xLz8pKDlUEldiucww omQObbjwVaYw0ek1e1+vUluUOe4cG65mKWchBVt09aNsdgTnoI6VttJBNMAEpBRBPbttV6n4R NEz7k4LDv0FmDFGFzoMpcUlL9T5Pml+zegKGhbUHDXHlXufZmajJgvmx++H1adV+MRg3ShF4H udwShRk8z1Wpz0XZDmy/HZxH609ME6hZrHVu+28fNAYKUZSRzlcXBDA6so8RSirXGlyqaZomN NvMer6SbqF0X+i2QvlbWkUB+ba5lmUofV+PqlWNCqa+2n2QQ5sqFw5ND8vBkLKzNaCL2iTmlF CJI7R3A/PPiO391ac0kFr5ecXKFLF/jY+NfgM31Azo6CihnI/79rDM10qUyAZCty2+PR4w2Q Received-SPF: pass client-ip=212.227.15.15; envelope-from=michael.albinus@gmx.de; helo=mout.gmx.net 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148335 Archived-At: Luiz Rom=C3=A1rio Santana Rios writes: Hi Luiz, > I use Tramp to access my remote work machine from home. Our machines are > only accessible through the comapny's internal network, so we either have > to use a VPN or double-hop to be able to access them. Both methods work > fine, but double-hopping doesn't seem to remember the password of the > second machine and Emacs keeps asking me for it multiple times per session > (every time I compile, every time eglot runs, etc). It seems > ~/.authinfo.gpg only applies to the first hop not to any subsequent hops. > > Can I solve this or is this a known limitation? Which Tramp version do you use? ~/.authinfo.gpg should handle multi-hops, but I'd like to know how it looks like. Is a sudo hop part of it? Anyway, a few days ago I rewrote Tramp password handling (due to a bug found in context of bug#74105). It is also related to the multi-hop scenario. So it might be worth to check this new version. Do you have a chance to test a recent checkout of Emacs (aka 31.0.50) or Tramp (aka 2.8.0-pre)? If not, you could wait some few days until the end of this month. Tramp 2.7.1.5, containing this fix, will appear on GNU ELPA then. If you run already the current Tramp version, 2.7.1.4, from GNU ELPA, I could send you the respective patch for test. Best regards, Michael.