How to Force a One-Off SSH Password Login Without Changing Keys or Server Policy
When SSH keeps offering a key but you want to test password login, you can override the authentication methods for a single connection using client options. The change applies only to that invocation, so keys, the SSH agent, and server policy are left untouched. Passwords should be entered at the interactive prompt rather than typed on the command line, to avoid exposure through shell history or process listings. The ssh -G command can confirm the effective client settings, and ssh -vv with -S none reveals which methods the server actually permits. Client flags cannot force a server to accept a method it does not allow, so the server's own authentication policy remains the controlling factor.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.


Discussion (0)
Log in to join the discussion and vote.
Log in