Variable substitution in UserKnownHostsFile configuration option

Dmitry Katsubo dma_k at mail.ru
Sun Jan 18 12:24:38 AEDT 2015


On 16/01/2015 01:46, Daniel Kahn Gillmor wrote:
> %r is the remote username, right?  so this would be useful if you wanted
> a different known_hosts file for example.net depending on whether you
> were logging in as foo at example.net or bar at example.net.  is that right?
> if so, it seems like a pretty strange use case.  can you come up with a
> better rationale for the variable substitution?
> 
> In the abstract, it seems like a reasonable suggestion, but the specific
> example you're offering isn't particularly compelling.

I agree, this feature usecase sounds a bit weird. In my case I am using
OpenSSH compiled with Cygwin for Win32 and I need to specify in
etc/ssh_config something like this:

UserKnownHostsFile /cygdrive/c/Users/%u/.ssh/known_hosts

Currently I can only specify the location of IdentityFile.

-- 
With best regards,
Dmitry


More information about the openssh-unix-dev mailing list