Tag Archives: Ubuntu 18.04

Set Up vsftpd for a User’s Directory on Ubuntu 18.04

Step 1 — Installing vsftpd

Let’s start by updating our package list and installing the vsftpd daemon:

  • sudo apt update
  • sudo apt install vsftpd

When the installation is complete, let’s copy the configuration file so we can start with a blank configuration, saving the original as a backup:

  • sudo cp /etc/vsftpd.conf /etc/vsftpd.conf.orig

With a backup of the configuration in place, we’re ready to configure the firewall.

Step 2 — Opening the Firewall

Let’s check the firewall status to see if it’s enabled. If it is, we’ll ensure that FTP traffic is permitted so firewall rules don’t block our tests.

Check the firewall status:

  • sudo ufw status

Continue reading

Configure Apache With TLS/SSL Certificate on Ubuntu 18.04

  • Apache server configured and installed

Step 1:  Generate Certificate

  1. Create a directory place to store the file
  1. $ mkdir ~/certificates
  2. $ cd ~/certificates

2. Generate a CSR and private key using following command

  1. $ openssl req -x509 -newkey rsa:4096 -keyout apache.key -out apache.crt -days 365 -nodes

After successfully running the command it will ask for the information of certificate request. Complete it using the appropriate information.

Continue reading