mirror of https://github.com/harness/drone.git
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
parent
c65f994af9
commit
a64d5631f4
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue