add possibility to use public key/identity instead of password.