diff --git a/roles/basessh/templates/sshd_config b/roles/basessh/templates/sshd_config index cc3485a118..44f774ecfe 100644 --- a/roles/basessh/templates/sshd_config +++ b/roles/basessh/templates/sshd_config @@ -51,11 +51,9 @@ AcceptEnv LC_IDENTIFICATION LC_ALL LANGUAGE AcceptEnv XMODIFIERS {% if sshd_keyhelper %} -# For git -Match User git - AuthorizedKeysCommandUser git - AuthorizedKeysCommand /usr/libexec/pagure/keyhelper.py "%u" "%h" "%t" "%f" -{% elif env == 'staging' and not sshd_keyhelper %} +AuthorizedKeysCommandUser git +AuthorizedKeysCommand /usr/libexec/pagure/keyhelper.py "%u" "%h" "%t" "%f" +{% elif %} AuthorizedKeysCommandUser nobody AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys {% endif %}