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