On pe, 15 touko 2020, Klaus Vink Slott via FreeIPA-users wrote:
Hi
I am playing around in my lab with a set of centos 8 and centos 7 VM's
trying to make automount do some magic. All client VM's is fully IPA
integrated - and that it seems to make bash completion unavailable when
I hit TAB to complete the fqdn after ssh [hostname]..
I guess that this is due to there is no .ssh/known_hosts in a ipa
integrated client. But at the same time it is really annoying that to
satisfy kerberos, I have to type the fqdn at the ssh prompt every time.
So before I start building my own bash completion something, I would
like to know if any of you have knowledge of a easy solution, some
pre-boiled howto, rpm or else?
The completion is done in /usr/share/bash-completion/bash_completion,
there is a generic function _known_hosts_real that is used in many
places in the completions. This function performs a lot of checks in
system-wide and user's ssh configuration files and their includes.
--
/ Alexander Bokovoy
Sr. Principal Software Engineer
Security / Identity Management Engineering
Red Hat Limited, Finland