From b6978b726665d5913ebf2007280cfcb729547694 Mon Sep 17 00:00:00 2001 From: Pratik <> Date: Sat, 25 Jan 2020 00:12:08 +0530 Subject: [PATCH] shortened the script URL --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d69aadc..9804ba9 100644 --- a/README.md +++ b/README.md @@ -34,9 +34,9 @@ Stable. Production ready. The script is intended to be executed immediately after you have access to a *__new__* Linux server (most likely a VPS) as *__root__*. ```console -root@host:~# wget -q https://raw.githubusercontent.com/pratiktri/server_init_harden/master/init-linux-harden.sh -O init-linux-harden.sh && bash ./init-linux-harden.sh -d -q -hide +root@host:~# wget -q https://sot.li/hardensh -O init-linux-harden.sh && bash ./init-linux-harden.sh -d -q -hide -root@host:~# wget -q https://raw.githubusercontent.com/pratiktri/server_init_harden/master/init-linux-harden.sh -O init-linux-harden.sh && bash ./init-linux-harden.sh --defaultsourcelist --quiet --hide-credentials +root@host:~# wget -q https://sot.li/hardensh -O init-linux-harden.sh && bash ./init-linux-harden.sh --defaultsourcelist --quiet --hide-credentials ``` > There are inherent risks involved with running scripts directly (without reviewing it first) from web - as done above. Everyone does it anyways, but you have been warned. @@ -46,7 +46,7 @@ root@host:~# wget -q https://raw.githubusercontent.com/pratiktri/server_init_har Run the script with below option to see all available options:- ```console -root@host:~# bash <(wget -q https://raw.githubusercontent.com/pratiktri/server_init_harden/master/init-linux-harden.sh -O -) --help +root@host:~# bash <(wget -q https://sot.li/hardensh -O -) --help Usage: sudo bash $0 [-u|--username username] [-r|--resetrootpwd] [--defaultsourcelist] -u, --username Username for your server (If omitted script will choose an username for you) @@ -422,9 +422,9 @@ Ans - User belongs to "sudo" group => Yes Run the script with "sudo" privileges:- ```console -root@host:~# wget -q https://raw.githubusercontent.com/pratiktri/server_init_harden/master/init-linux-harden.sh -O init-linux-harden.sh && sudo bash ./init-linux-harden.sh --username someusername --resetrootpwd --defaultsourcelist --quiet --hide-credentials +root@host:~# wget -q https://sot.li/hardensh -O init-linux-harden.sh && sudo bash ./init-linux-harden.sh --username someusername --resetrootpwd --defaultsourcelist --quiet --hide-credentials -root@host:~# wget -q https://raw.githubusercontent.com/pratiktri/server_init_harden/master/init-linux-harden.sh -O init-linux-harden.sh && sudo bash ./init-linux-harden.sh -u someusername -r -d -q -hide +root@host:~# wget -q https://sot.li/hardensh -O init-linux-harden.sh && sudo bash ./init-linux-harden.sh -u someusername -r -d -q -hide ``` ## Todo