Update SELF-HOSTING.md

This commit is contained in:
PLUJA 2020-09-07 13:21:46 +02:00 committed by GitHub
parent a797e71212
commit 8830dbe5fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,6 @@ First of all, you will need to set up a new user on the server. For security rea
We will create a user named `ubuntu` as I will be setting this up on an ubuntu machine. So, if you choose a different username make sure you replace it on future commands. We will create and login to the user as follows: We will create a user named `ubuntu` as I will be setting this up on an ubuntu machine. So, if you choose a different username make sure you replace it on future commands. We will create and login to the user as follows:
> The user needs to have a personal folder (i.e /home/ubuntu).
``` ```
# adduser --gecos "" ubuntu # adduser --gecos "" ubuntu
# usermod -aG sudo ubuntu # usermod -aG sudo ubuntu
@ -23,6 +21,8 @@ We will create a user named `ubuntu` as I will be setting this up on an ubuntu m
$ cd $ cd
``` ```
If you now type `pwd` and hit enter, you shuould see that the current path is `/home/<user>/`
Now you should be logged in. Make sure to set up a good password. It is recommended to use ssh keys to log-in remotelly and disable the password login on all users. Now you should be logged in. Make sure to set up a good password. It is recommended to use ssh keys to log-in remotelly and disable the password login on all users.
### Step 1: Base setup ### Step 1: Base setup