Hi all, I have a droplets using Ubuntu 18.04 and nginx and I want add two factor authentication (Google PAM). I have following this tutorial (https://www.digitalocean.com/community/tutorials/how-to-set-up-multi-factor-authentication-for-ssh-on-ubuntu-16-04), I know this was not appropriate Ubuntu version, but I have searched another tutorials and found them having same steps.
After installing Google PAM and configure the configuration file, this line makes me error every time I did ssh via Putty: AuthenticationMethods publickey,password publickey,keyboard-interactive and gave me error message: Putty error: No supported authentication methods available (server sent: keyboard-interactive)
I just confused because other people having trouble with no supported authentication methods, server sent: publickey not keyboard-interactive. And others said because login with non-root user. Please help me I’m stuck :(
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hello, @denverten
Are you trying to login using your ssh key or with your password and also do you login as root or using non-root username?
Looking forward to hearing from you.
Regards, Alex
This comment has been deleted
If both PasswordAuthentication no and UsePAM no, the AuthenticationMethods publickey,password publickey,keyboard-interactive will contradict. No interactivity for either passord or verification code entry will be allowed. In my case, I set PasswordAuthentication no and UsePAM yes. This allowed me to enter the verification code for the 2FA
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.