brew install google-authenticator-libpam
Jump to navigation
Jump to search
brew install google-authenticator-libpam
Running `brew update --auto-update`... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/cask). You have 1 outdated formula installed. You can upgrade it with brew upgrade or list it with brew outdated. ==> Downloading https://ghcr.io/v2/homebrew/core/qrencode/manifests/4.1.1 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/qrencode/blobs/sha256:6fa3a670e9708cf84470f82fd966e5610d0ad9d8c96c1f5987645b4db3fa65cb ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:6fa3a670e9708cf84470f82fd966e5610d0ad9d8c96c1f59876 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/google-authenticator-libpam/manifests/1.09 ######################################################################## 100.0% ==> Downloading https://ghcr.io/v2/homebrew/core/google-authenticator-libpam/blobs/sha256:ceb57c28fa8ac36471c762ab3d2dd67c5026a0568100e8 ==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:ceb57c28fa8ac36471c762ab3d2dd67c5026a0568100e82b756 ######################################################################## 100.0% ==> Installing dependencies for google-authenticator-libpam: qrencode ==> Installing google-authenticator-libpam dependency: qrencode ==> Pouring qrencode--4.1.1.arm64_monterey.bottle.tar.gz 🍺 /Users/YOUR_USER/brew/Cellar/qrencode/4.1.1: 13 files, 308.9KB ==> Installing google-authenticator-libpam ==> Pouring google-authenticator-libpam--1.09.arm64_monterey.bottle.tar.gz ==> Caveats Add 2-factor authentication for ssh: echo "auth required /Users/YOUR_USER/brew/opt/google-authenticator-libpam/lib/security/pam_google_authenticator.so" \ | sudo tee -a /etc/pam.d/sshd Add 2-factor authentication for ssh allowing users to log in without OTP: echo "auth required /Users/YOUR_USER/brew/opt/google-authenticator-libpam/lib/security/pam_google_authenticator.so" \ "nullok" | sudo tee -a /etc/pam.d/sshd (Or just manually edit /etc/pam.d/sshd) ==> Summary 🍺 /Users/YOUR_USER/brew/Cellar/google-authenticator-libpam/1.09: 11 files, 192.7KB ==> Running `brew cleanup google-authenticator-libpam`... Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP. Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`). ==> Caveats ==> google-authenticator-libpam Add 2-factor authentication for ssh: echo "auth required /Users/YOUR_USER/brew/opt/google-authenticator-libpam/lib/security/pam_google_authenticator.so" \ | sudo tee -a /etc/pam.d/sshd Add 2-factor authentication for ssh allowing users to log in without OTP: echo "auth required /Users/YOUR_USER/brew/opt/google-authenticator-libpam/lib/security/pam_google_authenticator.so" \ "nullok" | sudo tee -a /etc/pam.d/sshd (Or just manually edit /etc/pam.d/sshd)
See also
Advertising: