#!/usr/bin/env bash # Basic Server Security Hardening # Min. Requirement : GNU/Linux Ubuntu 14.04 # Last Build : 01/07/2019 # Author : ESLabs.ID (eslabs.id@gmail.com) # Since Version : 1.0.0 # Include decorator if [ "$(type -t run)" != "function" ]; then . scripts/helper.sh fi # Make sure only root can run this installer script if [ $(id -u) -ne 0 ]; then error "You need to be root to run this script" exit 1 fi echo -e "\nWelcome to LEMPer Basic Sercer Security Hardening" echo "Before starting, let's create a pair of keys that some hosts ask for during installation of the server. On your local machine, open new terminal and create an SSH key pair using the ssh-keygen tool, use the following command: ssh-keygen -t rsa -b 4096 After this step, you will have the following files: id_rsa and id_rsa.pub (private and public keys). Never share your private key. " read -t 15 -p "Press [Enter] to continue..." /home/lemper/.ssh/authorized_keys <