Last Updated: February 25, 2016
·
28.36K
· ivadim

Force ssh and scp to use Password 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

1 Response
Add your response

Or store this information forever for a given host or set of hosts in your ~/.ssh/config.

See how github-keygen does this for your SSH links to Github : https://github.com/dolmen/github-keygen

over 1 year ago ·