Putty error: No supported authentication methods available (server sent: keyboard-interactive)

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 (, 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 :(

Show comments

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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

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