After upgrading a system to Ubuntu 22.04 LTS I can't automatically connect to the station via AnyDesk because it keeps changing id on each reboot. Manual connection works fine and it allows unattended connection as well but only until reboot. Then it will assign a new id and default settings.
I tried looking into ~/.anydesk/ or /etc/anydesk/ as pointed in the manual but it has no effect, first time new id is generated it will be saved on disk, but after reboot new id will be saved only somewhere in memory.
I've also tried this answer and installing older versions without any success.
My current workaround is just to login via chrome remote desktop after reboot and restart anydesk manually. Here is guide on how to set it up.