diff --git a/makeitso b/makeitso index 99d4501..1fcc7ee 100755 --- a/makeitso +++ b/makeitso @@ -10,7 +10,7 @@ if [ ! -d /home/authorizedkeysuser ]; then sudo useradd -c 'User for AuthorizedKeysCommand' -d /home/authorizedkeysuser -m -s/usr/sbin/nologin authorizedkeysuser fi -grep -q AuthorizedKeysCommand /etc/ssh/sshd_config || \ +grep -qF 'AuthorizedKeysCommand /etc/ssh/get_authorized_keys' /etc/ssh/sshd_config || \ sudo sh -c "echo 'Match User $1 AuthorizedKeysCommand /etc/ssh/get_authorized_keys AuthorizedKeysCommandUser authorizedkeysuser' >> /etc/ssh/sshd_config"