Welcome to Server Circle. It's a friendly site and all levels of experience are welcome. Be aware that we use cookies for your login.
Server Circle - Ask questions about Servers and get answers from experts.
Beta (0.66 sec)
Google 2-step auth on SSH Server

Is it possible to use something like Google's 2-step auth on SSH without loads of config work ?

It seems sensible.

Thanks.
Asked by:
JimmyC
945 points
 Report Abuse
 Share Page - Category: Server Firewalls - Tags: Google 2-step auth on SSH Server
 Enter your response
Please use Pastie.org to paste lengthy code or to fix formatting issues with code
  • Responses in reverse (2)

Best Answer

I used http://www.mnxsolutions.c ... to set mine up, I think the only difference I did was that I added users into a group that requires ga code in addition to password. key based login is authenticated without needing the code.

The important lines for my pam setup are:



auth [default=ignore success=1] pam_succeed_if.so quiet user notingroup googleauth

auth required pam_google_authenticator.so


Response by:
_SteveWilson ...
4290 points
Just what I was looking for, thanks a lot.

Response by:
JimmyC
945 points


  • Related Questions
About Us : Contact Us : Etiquette : Terms : CDN Failover : ShorterURL : CDN Fallback : © 2013 Server Circle