password and public key authentication work