This is a question regarding the OpenSSH client on Linux, MacOSX and FreeBSD.
Normally, I log into systems using my SSH key.
Occasionally, I want my SSH client to ignore my SSH key and use a password instead. If I 'ssh hostname', my client prompts me for the Passphrase to my SSH key which is an annoyance. Instead, I want the client to simply ignore my SSH key, so that the server will ask me for my password instead.
I tried the following, but I am still prompted for the passphrase to my SSH key. After this, I am prompted for my password.
ssh -o PreferredAuthentications=password host.example.org
I want to do this on the client side, without any modification of the remote host.
I was thrown off by SSH_CONFIG(5), which still mentions the 'password' keyword.
Thanks for the clarification.
– Stefan Lasiewski Apr 07 '10 at 23:35passwordandkeyboard-interactiveare valid, and they are different things. (passwordrequires a password, andkeyboard-interactivecan technically be anything.) – u1686_grawity Apr 08 '10 at 12:17Look at the output of these commands:
– Lucian Adrian Grijincu Mar 15 '12 at 21:43ssh -o PubkeyAuthentication=no host.example.orgworked for me, when ssh from debian to other debian. fyi – Sverre Oct 27 '14 at 07:05ssh don't send key. Wow, this is hard to find. – bgStack15 Aug 31 '16 at 15:00-o IdentitiesOnly=yes. – Daviz Apr 14 '21 at 09:25