Skip to main content

Force Client to Use Password Authentication

Key authentication should always be setup, but sometimes it is necessary to authenticate using passwords—even if for nothing else than to verify passwords are disabled.

$ ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no user@domain.com

source