Adding a New User
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 Securing Your Instance guide for increased security.
SSH login with a new username
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 public key 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>
:
Last updated