Sabri – Ssh from Automatic Bash Remote Inditement

Written on Jul 02, 2009 // Open Source.

SabriI got a memory leak problem on my brain. Can’t remember all the passwords, hosts and usernames to connect to work and home servers, remote hosts etc. Usually I store everything on gnote and then simply copy&paste on my terminal, but I got bored about that, so I created sabri.

Sabri ( Ssh from Automatic Bash Remote Inditement ) is a Bash script able to store on a sqlite3 database all my ssh connections data (host, user & pass) and then connect to any of them automatically without prompting me for each password. I used Expect for automatic password send to openssh server and Crypt::Tea perl module to encrypt passwords for data safety.

Here’s how it works:

sabri -i #Installs the Database and create tables
sabri -s # Create a new connection
sabri -d connection_name # Connects to a stored connection

Easy uh?

Sabri is still in pre-release, I still didn’t realize any error detection/prevention, but if anyone wants to try it out just clone my sabri’s git repository

git clone git://github.com/andreaolivato/Sabri.git

or go to GitHub to download the zip file.

Please run

sabri -h

and

sabri -c

before any other action!


blog comments powered by Disqus