iaas: in case of ip6 vm use the correct address family

this is a follow up from commit:
de57e8d Test sshd connectivity to VM before trying to ssh

Signed-off-by: William Dauchy <william@gandi.net>