The setup script must be run every time the system is rebooted since the /root/.ssh/authorized_keys overwrites every boot.
This can be accomplished with a boot script. Flow its guide [UDM / UDMPro Boot Script](UDM / UDMPro Boot Script){target=_blank}