bug-guix
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#56082: home: services: openssh: identity-file could be a list of str


From: Oleg Pykhalov
Subject: bug#56082: home: services: openssh: identity-file could be a list of strings.
Date: Sun, 19 Jun 2022 10:39:37 +0300
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

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.

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]