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

Re: ssh bug known_hosts?



On Wed, Mar 01, 2023 at 04:52:57PM -0500, Jeffrey Walton wrote:
> On Wed, Mar 1, 2023 at 2:49 PM jeremy ardley <jeremy@ardley.org> wrote:
> >
> > I may have found a bug in openssh.
> > [...]
> > I have created a ~/.ssh/config file with contents
> >
> > Host jeremy_client
> >      HostName client.example.com
> >      User jeremy
> >      IdentityFile ~/.ssh/com.example.jeremy.id_rsa
> 
> Does ssh_config(5) do Bash parameter expansion. That is, is the tilde
> (~) expanded? I don't see it listed in the man page at
> https://linux.die.net/man/5/ssh_config .

In the bullseye ssh_config(5) man page:

             Arguments to IdentityFile may use the tilde syntax to refer to a
             user's home directory or the tokens described in the TOKENS sec‐
             tion.

The linux.die.net copy has similar wording, but is from an older version,
so it should not be used as an authority.  If you need an online man page,
there's <http://manpages.debian.org/ssh_config> which will redirect to
a man page from the current stable release.


Reply to: