Skip to content

Simple bash script which initialize VPS server with custom sudo user and docker.

Notifications You must be signed in to change notification settings

onmete/vps-initializer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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:).

About

Simple bash script which initialize VPS server with custom sudo user and docker.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages