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

Bug#919047: marked as done (ssh_config: allow tokens for IdentityFile keyword)



Your message dated Thu, 4 Dec 2025 15:32:42 +0000
with message-id <aTGpmgLtuhrncMCV@riva.ucam.org>
and subject line Re: Bug#919047: ssh_config: allow tokens for IdentityFile keyword
has caused the Debian Bug report #919047,
regarding ssh_config: allow tokens for IdentityFile keyword
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
919047: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=919047
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: openssh
Severity: wishlist

Hi,

it would be nice if ssh would allow using tokes in ssh_config for the IdentityFile keyword to minimize ssh_config files.

Without token, a config might look like this:

  ---
  Host *.example.com
    IdentifyFile ~/.ssh/keys/daniel.baumann@example.com

  Host *.example.org
    IdentifyFile ~/.ssh/keys/daniel@example.org
  --

with token support, I could have:

  --
  Host *.example.com *.example.org
    IdentityFile ~/.ssh/keys/%u@%h
  --

Regards,
Daniel

--- End Message ---
--- Begin Message ---
Source: openssh
Source-Version: 1:4.6p1-1

On Sat, Jan 12, 2019 at 10:26:23AM +0100, Daniel Baumann wrote:
it would be nice if ssh would allow using tokes in ssh_config for the IdentityFile keyword to minimize ssh_config files.

Without token, a config might look like this:

 ---
 Host *.example.com
   IdentifyFile ~/.ssh/keys/daniel.baumann@example.com

 Host *.example.org
   IdentifyFile ~/.ssh/keys/daniel@example.org
 --

with token support, I could have:

 --
 Host *.example.com *.example.org
   IdentityFile ~/.ssh/keys/%u@%h
 --

I looked back through git history, and it seems as though this was added in OpenSSH 4.4, all the way back in 2006. See https://bugzilla.mindrot.org/show_bug.cgi?id=1159. It's been made a bit more general since, but even back then it looks as though you could use "IdentityFile ~/.ssh/keys/%r@%h" (assuming that you meant to use the remote user name).

Regards,

--
Colin Watson (he/him)                              [cjwatson@debian.org]

--- End Message ---

Reply to: