sudo apt install ssh curl -ymkdir -p ~/.ssh; curl https://github.com/gnat.keys >> ~/.ssh/authorized_keys; chmod 600 ~/.ssh/authorized_keyssudo echo "PasswordAuthentication no" >> /etc/ssh/sshd_configsudo systemctl reload ssh
You can now use ssh to do a proper setup.
This is can also be done at install time in the Ubuntu Server GUI.