Hi
I'm trying to set up a quick test host and have added this entry in my
~/.ssh/config:
# Test host
Host imapsync
Hostname 2001:610:148:f00d:20c:29ff:fe14:ccfe
Just issuing "ssh imapsync" works fine.
I have this corresponding in my ansible inventory:
# test host
imapsync
But when I try to run "ansible imapsync -m setup", I get:
"SSH Error: data could not be sent to the remote host. Make sure this
host can be reached over ssh".
It turns out that the literal IPv6 address is the culprit.
If I enable IPv4 on the host and change the ssh config to:
# Test host
Host imapsync
Hostname 192.87.38.66
Then things work.
Is there another way of specifying a literal IPv6 address.
PS I also tested using DNS by adding the name to /etc/hosts, and that
seems to work as well.
But the whole point of having ssh config's "Hostname" and ansible's
inventory is to no use DNS.
Thanks!
--
Dick Visser
Sr. System & Network Engineer
GÉANT
Want to join us? We're hiring:
https://www.geant.org/jobs