diff --git a/roles/basessh/templates/sshd_config b/roles/basessh/templates/sshd_config index f87c137137..3e52530532 100644 --- a/roles/basessh/templates/sshd_config +++ b/roles/basessh/templates/sshd_config @@ -54,6 +54,9 @@ AcceptEnv XMODIFIERS # For repospanner/git AuthorizedKeysCommandUser git AuthorizedKeysCommand /usr/libexec/pagure/keyhelper.py "%u" "%h" "%t" "%f" +{% elif env == 'staging' and not sshd_keyhelper %} +AuthorizedKeysCommandUser nobody +AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys {% endif %}