👪Create new user and remove default one
First add a new user and give it superuser privileges:
On you local machine, find the public key:
On your VM, paste the public key to the correct file:
Before disconnecting your current session from the VM, open a new terminal window and try to connect as the new user with the old key, to check that everything worked.
Once connected as your new user, delete the old one:
For more details about this process, refer to this Digital Ocean document.
Last updated