Skip to main content
21 events
when toggle format what by license comment
Feb 11, 2023 at 21:57 comment added Summer-Sky superuser.com/a/1684034/329627 this was the correct solution for me. ssh -o "PasswordAuthentication yes" user@host
Jan 12, 2023 at 14:16 history edited Cristian Ciupitu CC BY-SA 4.0
explained answer and added links to documentation; new style formatting
May 27, 2021 at 9:51 comment added Hi-Angel I had to add another option: -o UserKnownHostsFile=/dev/null. Otherwise it may bail out with an error WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED. This may happen for example if remote host has a system booted different to the one you had originally key generated for.
Sep 28, 2020 at 13:49 comment added reinierpost @tobiasBora: I know password authentication is enabled, as it works for other accounts on the same server. @Finesse: this is not my server and I cannot even read its sshd_config.
Mar 31, 2020 at 10:44 comment added Jonathan Cross I was getting Permission denied (publickey,password) which seemed to suggest that a password should be accepted, but none of the options above would actually cause ssh to prompt me for the password. Turns out it was a configuration error in ~/.ssh/config that was setup to use key authentication. Who knew this prevents all command line options from taking effect!
Mar 2, 2020 at 10:14 comment added Finesse Make sure you've enabled password access on the server: serverpilot.io/docs/how-to-enable-ssh-password-authentication
Sep 16, 2018 at 16:24 comment added reinierpost The host had enabled PasswordAuthentication but I never tried keyboard-interactive. I don't recall where I had the problem, but I will bear this in mind, thanks.
Sep 15, 2018 at 17:19 comment added tobiasBora @reinierpost I had the same problem as you, and changing password with keyboard-interactive make it work, as spotted by guido : ssh -o PreferredAuthentications=keyboard-interactive -o PubkeyAuthentication=no [email protected]
Sep 8, 2018 at 14:39 comment added RubberDuck @reinierpost that's likely because the ssh host has disabled PasswordAuthentication. In fact, I'm here because I wanted to test that disabling password auth worked correctly on my host.
Jul 29, 2018 at 23:14 history edited Braiam CC BY-SA 4.0
added 99 characters in body
Jul 27, 2018 at 12:18 comment added reinierpost This doesn't work for me. It keeps saying: Permission denied (publickey). and never offers a password prompt.
Jul 10, 2018 at 9:39 comment added Nick my 5cent. I have normal sshd on port 22, that accept passwords and PK. Firewall is configured to allow only specific IP addresses on port 22. Then i have second sshd on different port that accept only PK.
Oct 18, 2016 at 22:11 comment added Luis Casillas @guido: Same here. I bet it's not OS X related, though, but rather has to do with OpenSSH versions.
Sep 17, 2016 at 15:23 comment added guido to ssh into a friend osx laptop, I had to use: -o PreferredAuthentications=keyboard-interactive -o PubkeyAuthentication=no instead
Sep 13, 2016 at 14:12 comment added Adam Mackler @mivk same here.
Sep 4, 2016 at 10:04 comment added mivk Nice. Only -o PubkeyAuthentication=no was sufficient in my case.
S Jan 24, 2015 at 12:44 history suggested sobi3ch CC BY-SA 3.0
If you don't add '-o PreferredAuthentications=password' then you can end up with bunch of diffrint authentications: "Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password"
Jan 24, 2015 at 11:45 review Suggested edits
S Jan 24, 2015 at 12:44
Aug 13, 2013 at 10:56 comment added IllvilJa I needed to enforce the password prompt to appear in an environment where Kerberos was used for automated authentication, and a similar command worked for me in that specific situation: ssh -o GSSAPIAuthentication=no example.com
Jun 17, 2011 at 6:54 vote accept LanceBaynes
Jun 17, 2011 at 6:50 history answered scoopr CC BY-SA 3.0