This is an old revision of the document!
sudo su - echo "P@ssw0rd" | anydesk --set-password nano /etc/gdm3/custom.conf
Check for/add:
WaylandEnable=false AutomaticLoginEnable = true AutomaticLogin = $USERNAME
sudo apt install openssh-server
How to Fix AnyDesk of Display_Server_Not_Supported Error for Ubuntu 22.04
How to Enable SSH on Ubuntu 20.04