I followed this guide:
https://www.digitalocean.com/community/articles/how-to-protect-ssh-with-two-factor-authentication
Unfortunately it does not ask me for verification code when I log in through SSH. It asks me when I try to run command with sudo, or if i try to log in with KVN in the digitaloceans panel.
What could be wrong?
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!
Did you run the ‘google-authenticator’ command as the root user, as well as the particular user you use?
Hey. I am after redoing the whole thing. This time I set up as root user and as my ordinary user. Still the same though! If I log in with ssh, still does not ask me for verification code.
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.