Support 'password' param as well as private key authentication