Force SSH client to use Password Authentication

Some times you may need to test if password authentication works for SSH and you have SSH key authentication already set.

You can comment out your SSH key from ~/.ssh/authorized_keys to do this. Another solution is to use

ssh -o PreferredAuthentications=password USER@SERVER_IP

To disable Public key authentication, use

-o PubkeyAuthentication=no

ssh

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *