Skip to content

martxel/vps_setup_scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VPS setup scripts for Debian 7 Wheezy

Installation

Usage

Step 1: Upload the initial setup script

./upload-initial-setup-script [email protected]

Step 2: Connect to the server and run the initial-setup script.

ssh [email protected]
./initial-setup

This script will update the system, install sudo, create the deployer user, configure the timezone and build the locales you need.

It will ask a password for your new user, information for the new user, your timezone and the locales you want to build.

Leave empty the default system locale.

Step 3: Upload your public key for the deployer user

From your local machine:

./ssh-copy-id [email protected]

You should be able to connect to the server without a password:

Step 4: Upload the server_scripts with the user you have created

./upload-server-scripts [email protected]

Step 5: Connect to the server with the deployer user and run the secure-server script

You can edit the secure-server script and change the $SSH_PORT variable to another port.

Then run:

ssh [email protected]
./server_scripts/secure-server

You won't be able to connect through ssh with the root user anymore.

You won't be able to login through ssh with password auth anymore.

iptables will only allow external connections to http, https and ssh ports.

Step 6 (optional): Run application installation scripts

You can run the different application installation scripts from server_scripts/applications.

About

VPS setup scripts.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages