SSHbase: add support for ipv6 addresses in known_hosts file

This patch adds support for ipv6 addresses in the known_:hosts file. Sadly gethostbyname does not support this, so the more complex function socket.getaddrinfo has to be used.