mirror of
https://github.com/harness/drone.git
synced 2025-05-06 04:50:38 +08:00
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.
This commit is contained in:
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
Block a user