From a64d5631f46a726ecbd74028e58e05d27b47ed35 Mon Sep 17 00:00:00 2001 From: Dhruv Dhruv Date: Mon, 2 Dec 2024 08:16:42 +0000 Subject: [PATCH] feat: [CDE-473]: Unlocking and removing remoteUser password in case of SSH key. (#3090) * feat: [CDE-473]: Unlocking and removing remoteUser password in case of SSH key. --- app/gitspace/orchestrator/template/templates/manage_user.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/app/gitspace/orchestrator/template/templates/manage_user.sh b/app/gitspace/orchestrator/template/templates/manage_user.sh index f5955efbb..16157fc23 100644 --- a/app/gitspace/orchestrator/template/templates/manage_user.sh +++ b/app/gitspace/orchestrator/template/templates/manage_user.sh @@ -44,6 +44,7 @@ if [ "ssh_key" = "$accessType" ] ; then echo $accessKey > $homeDir/.ssh/authorized_keys chmod 600 $homeDir/.ssh/authorized_keys chown -R $username:$username $homeDir/.ssh + echo "$username:" | chpasswd -e elif [ "user_credentials" = "$accessType" ] ; then echo "$username:$accessKey" | chpasswd else