Skip to content

Latest commit

 

History

History
26 lines (23 loc) · 774 Bytes

README.md

File metadata and controls

26 lines (23 loc) · 774 Bytes

VPS initializer

Designed for Ubuntu 14/16 server.

This simple bash script which initialize VPS server with custom sudo user, ssh connection and docker.

Log on your VPS as root and install Git first with:

(optional) $ apt-get update
(optional) $ apt-get upgrade
$ apt-get install git -y

Clone this repo with bash script and enter to it.

$ git clone https://github.com/methlock/vps-initializer
$ cd vps-initializer

Run script with desired arguments.

$ bash vps_init.sh <new user> <its password> <new ssh port>

You will be prompted for ssh key at some point. You should have this key at your disposal.

This script will block password authentication. So if you enter ssh key somehow wrong, you must reinitialize your VPS:).