Enforce SSH or SCP password authentication

Use the bellow ssh/scp options in order to enforce password (keyboard-interactive) authentication:

ssh -o PubkeyAuthentication=no user@example.com
scp -o PubkeyAuthentication=no user@example.com

or

ssh -o PreferredAuthentications="password" user@example.com
scp -o PreferredAuthentications="password" user@example.com

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.