Adding a New User
Last updated
Last updated
It is not recommended only to have a root
user on your server, thus we will set up a new user account.
The process is fairly straightforward:
Provide a secure password, and your new user account is created.
We will want occasional higher privileges:
And you are done! Read the for increased security.
Next, we will allow the newly created. Go to the new User's folder and create .ssh
folder and authorized_keys
file, and change its file permissions:
To authenticate the new user, you will need to copy the corresponding to the user:
You can now login from your workstation:
Alternatively, you can copy the entire authorized_keys
file from the root
user:
Make sure to give an ownership of .ssh
folder to <username>
: