[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#39366: guix offload sometimes can use ~/.ssh/config, sometimes not
From: |
Ludovic Courtès |
Subject: |
bug#39366: guix offload sometimes can use ~/.ssh/config, sometimes not |
Date: |
Mon, 03 Jan 2022 17:58:21 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) |
Hi,
zimoun <zimon.toutoune@gmail.com> skribis:
> On Wed, 05 Feb 2020 at 12:11, Ludovic Courtès <ludo@gnu.org> wrote:
[...]
>> That is confusing indeed. It comes from the fact that ‘guix offload’ in
>> the last case is running as root; thus, it sees a different
>> ~/.ssh/config.
>
> Therefore, see 52517. :-) And the manual is also confusing, IMHO.
>
> <http://issues.guix.gnu.org/issue/52517>
>
>
>> We could instruct ‘guix offload’ to always ignore ~/.ssh/config, but
>> that wouldn’t be great because using it can be useful.
>
> Well, I am in favor of POLA.
Yeah, actually that would be in line with
bd8345777f5a48ee61656248655ebac71a09e926.
How about this:
diff --git a/guix/scripts/offload.scm b/guix/scripts/offload.scm
index 9ddf458c13..925325ef5f 100644
--- a/guix/scripts/offload.scm
+++ b/guix/scripts/offload.scm
@@ -231,6 +231,9 @@ (define* (open-ssh-session machine #:optional
max-silent-time)
;; stateless instead.
#:knownhosts "/dev/null"
+ ;; Likewise for ~/.ssh/config.
+ #:config "/dev/null"
+
;; We need lightweight compression when
;; exchanging full archives.
#:compression
?
Ludo’.
- bug#39366: guix offload sometimes can use ~/.ssh/config, sometimes not,
Ludovic Courtès <=