use realpath to get host key