When I connect to a CentOS 7 host with IPv6 my ssh client always adds <IPv6 host addr>%2
to known_hosts
even though the host key for this host (with the host's IPv6 address) is already present in known_hosts
.
What does the %2
stand for? I'm using the unmodified OpenSSH from CentOS 7 which is version 6.6.1p1-25, release 25.el7_2.
Update: A comment mentioned name resolution as a possible problem. Indeed I'm using systemd-resolved on the client machine. When I remove resolved
from /etc/nsswitch.conf
(hosts
option) the problem does not occur anymore. This is with systemd-resolved-219-19.el7_2.7.x86_64
).
Update (Feb 2017): I just noticed systemd-resolved bug 4465 so the behavior I noticed was/is just a bug which will be fixed in a later version of systemd.