When using ssh if you only need to use password (no keys):

ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no <host>