在sshd pam中使用google-authenticator的白名单IP
我的Ubuntu 12.04服务器使用google-authenticator pam模块为ssh提供两步validation。 我需要这样做,以便某个IP不需要inputvalidation码。 /etc/pam.d/sshd文件如下: # PAM configuration for the Secure Shell service # Read environment variables from /etc/environment and # /etc/security/pam_env.conf. auth required pam_env.so # [1] # In Debian 4.0 (etch), locale-related environment variables were moved to # /etc/default/locale, so read that as well. auth required pam_env.so envfile=/etc/default/locale # Standard Un*x authentication. @include common-auth […]