В принципе @Jakuje прав.
Common-auth содержит строку с pam_unix.so. Я бы создал новый файл /etc/pam.d/google_auth и включил его в ваш /etc/pam.d/sshd вместо common-auth. Таким образом, вы более модулярны.
В основном, google-auth выглядит следующим образом:
# here are the per-package modules (the "Primary" block)
auth [success=1 default=ignore] pam_google_authenticator.so
# here's the fallback if no module succeeds
auth requisite pam_deny.so
# prime the stack with a positive return value if there isn't one
# this avoids us returning an error just because nothing sets a success code
# since the modules above will each just jump around
auth required pam_permit.so
# and here are more per-package modules (the "Additional" block)
auth optional pam_cap.so
# end of pam-auth-update config
Таким образом, вы можете включить google-auth в любой сервис, который вам нравится.