fifiant / obe

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

obe

Script for installing and setting Virtual Machine from SSH. Obe is an easy way to install and setting VM environment.

Prerequisites

Setup locale

$ locale-gen en_GB en_GB.UTF-8
$ dpkg-reconfigure locales

Add user

$ adduser example_user sudo

Setup SSH Key Pair Authentication

On your local machine:

$ ssh-keygen
$ scp ~/.ssh/id_rsa.pub example_user@your_locahost:

On your remote box:

$ mkdir .ssh
$ mv id_rsa.pub .ssh/authorized_keys
$ chown -R example_user:example_user .ssh
$ chmod 700 .ssh
$ chmod 600 .ssh/authorized_keys

Disabling SSH Password Authentication and Root Login

$ sudo vi /etc/ssh/sshd_config

Set the following config params:

PasswordAuthentication no
PermitRootLogin no

Usage

fab -H

Licence

Apache 2 Copyright (c) 2014

About

License:Apache License 2.0