diff --git a/duplicati/add.ssh.pubkey.sh b/duplicati/add.ssh.pubkey.sh index f335b32..19e7c92 100755 --- a/duplicati/add.ssh.pubkey.sh +++ b/duplicati/add.ssh.pubkey.sh @@ -344,7 +344,7 @@ Create authorized_keys file for ${USER_NAME} (${RED}${USER_AUTHORIZED_KEYS_FILE} ## If pubkey isn't already in authorized_keys file {{{ ### Add it with expected options else - printf "%s" "${SSH_PUBKEY_OPTION} ${SSH_PUBKEY}" >> "${USER_AUTHORIZED_KEYS_FILE}" \ + printf "%s\n" "${SSH_PUBKEY_OPTION} ${SSH_PUBKEY}" >> "${USER_AUTHORIZED_KEYS_FILE}" \ || error_message "Error while adding SSH_PUBKEY with expected options in authorized_keys file (${USER_AUTHORIZED_KEYS_FILE})." 32 debug_message "The given pubkey is now present in authorized_keys file (${RED}${USER_AUTHORIZED_KEYS_FILE}${COLOR_DEBUG}) with expected permissions." fi