verifying the key pair of a remote server