summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Estabrook <jestabro@vyos.io>2022-10-12 14:06:45 -0500
committerGitHub <noreply@github.com>2022-10-12 14:06:45 -0500
commit74c39157c732605dea6fbe09fd5fc9d3b9229d7e (patch)
tree9967c1bded01d536886572a3ade8533d91041a08
parenta057a5c1388a980f9eba126ab5bda00ce76cf23d (diff)
parent9821465445b4ec314afb922a8679a51ee0b2297b (diff)
downloadvyos-1x-74c39157c732605dea6fbe09fd5fc9d3b9229d7e.tar.gz
vyos-1x-74c39157c732605dea6fbe09fd5fc9d3b9229d7e.zip
Merge pull request #1585 from goodNETnick/ssh_login_bugfix
system login: T874: add 2FA support for local and ssh authentication.…
-rw-r--r--debian/vyos-1x.postinst6
1 files changed, 2 insertions, 4 deletions
diff --git a/debian/vyos-1x.postinst b/debian/vyos-1x.postinst
index dc64e7a42..9766c91b1 100644
--- a/debian/vyos-1x.postinst
+++ b/debian/vyos-1x.postinst
@@ -23,13 +23,11 @@ fi
# Add 2FA support for SSH
sudo grep -qF -- "auth required pam_google_authenticator.so nullok" "/etc/pam.d/sshd" || \
-sudo sed -i '/^@include common-auth/a # Check OTP 2FA, if configured for the user\nauth required pam_google_authenticator.so nullok' /etc/pam.d/sshd \
-/
+sudo sed -i '/^@include common-auth/a # Check OTP 2FA, if configured for the user\nauth required pam_google_authenticator.so nullok' /etc/pam.d/sshd
# Add 2FA support for local authentication
sudo grep -qF -- "auth required pam_google_authenticator.so nullok" "/etc/pam.d/login" || \
-sudo sed -i '/^@include common-auth/a # Check OTP 2FA, if configured for the user\nauth required pam_google_authenticator.so nullok' /etc/pam.d/login \
-/
+sudo sed -i '/^@include common-auth/a # Check OTP 2FA, if configured for the user\nauth required pam_google_authenticator.so nullok' /etc/pam.d/login
# Add RADIUS operator user for RADIUS authenticated users to map to
if ! grep -q '^radius_user' /etc/passwd; then