Feature Request: Make ssh-keygen -R accepts Host aliases from .ssh/config
Jakub Jelen
jjelen at redhat.com
Wed Oct 19 02:27:45 AEDT 2016
On 10/18/2016 04:06 PM, Perry Gagne wrote:
> One annoying thing I found when working with hosts that get reinstalled
> regularly is I occasionally want to delete there known_host entires. I have
> been using ssh-keygen -R to do this. However, the -R does not accept this
> config file aliases. So I can just type:
>
> ssh-keygen -R myvm
>
> I have to type:
>
> ssh-keygen -R vm-5.testlab.example.com
>
>
> Is there a technical reason for this? Is there a reason ssh-keygen can't do
> a lookup in the config file for host alias to get the full hostname?
The ssh-keygen is not reading client configuration (~/.ssh/config) and
therefore it does not have any idea what are the aliases defined there.
The aliases are not stored in the known hosts file either so we would
not be able to progress without the configuration file (which is not
needed for anything else).
In all other tools it works, because they use internally the ssh client
with its configuration. But ssh-keygen is standalone tool which should
not depend on any configuration files, afaik.
Regards,
--
Jakub Jelen
Associate Software Engineer
Security Technologies
Red Hat
More information about the openssh-unix-dev
mailing list