Skip to content

Commit ef28357

Browse files
vascoguitaleggewie
authored andcommitted
fix(armbian-firstlogin): use PRESET_USER_KEY instead of PRESET_ROOT_KEY for user SSH key
1 parent ca4dc80 commit ef28357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/bsp/common/usr/lib/armbian/armbian-firstlogin

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ add_user() {
587587
# download and add SSH key if defined
588588
if [[ -n "${PRESET_USER_KEY}" ]]; then
589589
mkdir -p /home/"$RealUserName"/.ssh/
590-
curl --retry 5 --connect-timeout 3 "${PRESET_ROOT_KEY}" > /home/"$RealUserName"/.ssh/authorized_keys 2> /dev/null
590+
curl --retry 5 --connect-timeout 3 "${PRESET_USER_KEY}" > /home/"$RealUserName"/.ssh/authorized_keys 2> /dev/null
591591
chown -R "$RealUserName":"$RealUserName" /home/"$RealUserName"/.ssh/
592592
fi
593593

0 commit comments

Comments
 (0)