Force SSH password authentication

categories:

If for some reason you want to disable public key authentication temporarily when SSH’ing into a machine, type :

ssh -o PubkeyAuthentication=no user@machine

You should get the prompt for the password.

This goes without saying, but ChallengeResponseAuthentication (at least on Debian) must be set to yes on the server side for this to work.

Thanks to Philip for proof-reading this post :-)




Thanks for reading this post!


If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!