From a1121be9911d1f4c7e80cbd00599e78571cffdd8 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Mon, 29 Mar 2021 20:57:58 -0700 Subject: [PATCH] basessh / pagure: undo change to everyone using git user, as we are not doing this now Signed-off-by: Kevin Fenzi --- roles/basessh/templates/sshd_config | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) 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 %}