Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Config
Commits
b6ac28c7
Commit
b6ac28c7
authored
May 15, 2018
by
zador-blood-stained
Browse files
UNTESTED: Install 2FA packages only when requested
parent
60c40e60
Changes
1
Show whitespace changes
Inline
Side-by-side
debian-config-jobs
View file @
b6ac28c7
...
...
@@ -1064,6 +1064,12 @@ function jobs ()
# phone
if
[[
"
${
my_array
[*]
}
"
==
*
" PhoneAuthentication "
*
]]
;
then
if
!
check_if_installed libpam-google-authenticator
;
then
debconf-apt-progress
--
apt-get
-y
install
libpam-google-authenticator
fi
if
!
check_if_installed qrencode
;
then
debconf-apt-progress
--
apt-get
-y
install
qrencode
fi
MergeParameter
=
"keyboard-interactive"
sed
-i
"s/^#
\?
ChallengeResponseAuthentication.*/ChallengeResponseAuthentication yes/"
/etc/ssh/sshd_config
sed
-i
-n
'/password updating/{p;:a;N;/@include common-password/!ba;s/.*\n/auth required pam_google_authenticator.so nullok\n/};p'
/etc/pam.d/sshd
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment