Partially implementation of auth_keys