Adding a known hosts file and ssh-like explicit public key validation