πͺCreate new user and remove default one
# Create a new user
sudo adduser <your-chosen-username>
# Add the new user to the sudoers list
sudo visudo
# In the editor add a new line that looks like this:
<your-chosen-username> ALL=(ALL:ALL)ALL
# Log on as the new user
su -l <your-chosen-username>
# Check superuser privileges
sudo apt update # (or any other command)# Do this, and copy the output
ssh-keygen -y -f <path-to-the-new-oracle-key># Do this from the new user home
mkdir .ssh
touch .ssh/authorized_keys
nano .ssh/authorized_keys # paste the public key here Last updated