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

Posted February 22, 2019 3.7k views
NginxUbuntu 18.04

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

1 comment

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.

Submit an Answer
3 answers

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.


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