GNU bug report logs - #56082
home: services: openssh: identity-file could be a list of strings.

Previous Next

Package: guix;

Reported by: Oleg Pykhalov <go.wigust <at> gmail.com>

Date: Sun, 19 Jun 2022 07:40:02 UTC

Severity: normal

To reply to this bug, email your comments to 56082 AT debbugs.gnu.org.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-guix <at> gnu.org:
bug#56082; Package guix. (Sun, 19 Jun 2022 07:40:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Oleg Pykhalov <go.wigust <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Sun, 19 Jun 2022 07:40:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Oleg Pykhalov <go.wigust <at> gmail.com>
To: bug-guix <bug-guix <at> gnu.org>
Subject: home: services: openssh: identity-file could be a list of strings.
Date: Sun, 19 Jun 2022 10:39:37 +0300
[Message part 1 (text/plain, inline)]
Currently ‘identity-file’ in ‘openssh-host’ record is a ‘maybe-string’,
but it could be a list, which generates a config like:

Host example.org
  …
  IdentityFile ~/.ssh/id_rsa_1
  IdentityFile ~/.ssh/id_rsa_2
  IdentityFile ~/.ssh/id_rsa_3

SSH_CONFIG(5) man page:
     IdentityFile
             …
             It is possible to have multiple identity files specified in con‐
             figuration files; all these identities will be tried in sequence.
             Multiple IdentityFile directives will add to the list of identi‐
             ties tried (this behaviour differs from that of other configura‐
             tion directives).

Personally I use more than one ‘IdentityFile’ as a workaround to define
a big ‘ssh_config’.  SSH connects with a first successed ‘IdentityFile’.


Oleg.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to bug-guix <at> gnu.org:
bug#56082; Package guix. (Sun, 03 Jul 2022 20:54:01 GMT) Full text and rfc822 format available.

Message #8 received at 56082 <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Oleg Pykhalov <go.wigust <at> gmail.com>
Cc: 56082 <at> debbugs.gnu.org
Subject: Re: bug#56082: home: services: openssh: identity-file could be a
 list of strings.
Date: Sun, 03 Jul 2022 22:52:59 +0200
Hi,

Oleg Pykhalov <go.wigust <at> gmail.com> skribis:

> Currently ‘identity-file’ in ‘openssh-host’ record is a ‘maybe-string’,
> but it could be a list, which generates a config like:
>
> Host example.org
>   …
>   IdentityFile ~/.ssh/id_rsa_1
>   IdentityFile ~/.ssh/id_rsa_2
>   IdentityFile ~/.ssh/id_rsa_3

I didn’t realize it was possible.  Worth fixing!

Thanks,
Ludo’.




This bug report was last modified 2 years and 344 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.