From ef283575616d33118900851fd414d48c71bc90ff Mon Sep 17 00:00:00 2001 From: Vasco Guita Date: Wed, 6 Aug 2025 12:19:59 +0000 Subject: [PATCH] fix(armbian-firstlogin): use PRESET_USER_KEY instead of PRESET_ROOT_KEY for user SSH key --- packages/bsp/common/usr/lib/armbian/armbian-firstlogin | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/bsp/common/usr/lib/armbian/armbian-firstlogin b/packages/bsp/common/usr/lib/armbian/armbian-firstlogin index c969a1bb84..262331085b 100755 --- a/packages/bsp/common/usr/lib/armbian/armbian-firstlogin +++ b/packages/bsp/common/usr/lib/armbian/armbian-firstlogin @@ -587,7 +587,7 @@ add_user() { # download and add SSH key if defined if [[ -n "${PRESET_USER_KEY}" ]]; then mkdir -p /home/"$RealUserName"/.ssh/ - curl --retry 5 --connect-timeout 3 "${PRESET_ROOT_KEY}" > /home/"$RealUserName"/.ssh/authorized_keys 2> /dev/null + curl --retry 5 --connect-timeout 3 "${PRESET_USER_KEY}" > /home/"$RealUserName"/.ssh/authorized_keys 2> /dev/null chown -R "$RealUserName":"$RealUserName" /home/"$RealUserName"/.ssh/ fi