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


I’m also experiencing this error following this same guide, any help would be appreciated.

Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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