SSH connection without password between two linux machines

Overview

How to establish SSH connection without password between two linux/unix machines

SSH connection without password between two linux machines

Instructions

  1. Generate the files: [id_rsa], [id_rsa.pub] in the First Machine by typing at command (do not use a password – just hit Enter*) :
    ssh-keygen

    * You don’t want to enter any passwords, because you want to call ssh from a within a shell script.
    ** The randomart is an easier way for humans to validate keys.
  2. Copy (and rename) id_rsa.pub to authorized_keys on Server (run from the same computer you run ssh-keygen);
    scp -r -P 22 /root/.ssh/id_rsa.pub destination:/root/.ssh/authorized_keys<em>
    </em>

    Where destination is server B.

Now you can connect as root without a password between the servers.

Installing Lighttpd on Centos 6.3 is Easy!

Overview

Security, speed, compliance, and flexibility — all of these describe lighttpd (pronounced lighty) which is rapidly redefining efficiency of a webserver; as it is designed and optimized for high performance environments.
With a small memory footprint compared to other web-servers, effective management of the cpu-load, and advanced feature set (FastCGI, SCGI, Auth, Output-Compression, URL-Rewriting and many more) it is the perfect solution for every server that is suffering load problems.And best of all it’s Open Source licensed under the revised BSD license.

Continue reading

Installing Python / Django on Centos 6.3 is Easy!

 

 

Django

NOTE: This article was rewritten (for CentOS 6.4). please read the updated post.

What is Python?

Python is a general-purpose, high-level programming language whose design philosophy emphasizes code readability. Its syntax is said to be clear and expressive.” from Wikipedia.

Visit http://www.python.org/

 

What is Django?

“Django is a high-level Python Web framework that encourages rapid development and clean, pragmatic design.” from https://www.djangoproject.com/

Continue reading