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.
pull/3597/head
Dhruv Dhruv 2024-12-02 08:16:42 +00:00 committed by Harness
parent c65f994af9
commit a64d5631f4
1 changed files with 1 additions and 0 deletions

View File

@ -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