add authentication with public key