Skip to content

Commit

Permalink
Merge pull request #1629 from 0nebody/user-ssh-password
Browse files Browse the repository at this point in the history
Override SSH password
  • Loading branch information
k8s-ci-robot authored Nov 18, 2024
2 parents e040550 + 879b743 commit 1cc58e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/capi/hack/set-ssh-password.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ if ! [ "$(printf '%s\n' "$minimum_openssl_version" "$current_openssl_version" |
exit 1
fi

export SSH_PASSWORD=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 16; echo)
export SSH_PASSWORD=${SSH_PASSWORD:-"$(tr -dc A-Za-z0-9 </dev/urandom | head -c 16; echo)"}
SALT=$(tr -dc A-Za-z0-9 </dev/urandom | head -c 16; echo)
export ENCRYPTED_SSH_PASSWORD=$($openssl_binary passwd -6 -salt $SALT -stdin <<< $SSH_PASSWORD)

Expand Down

0 comments on commit 1cc58e3

Please sign in to comment.