[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

SSH window script

From: Bryan Simmons <bryan.simmons_at_gmail.com>
Date: 2004-10-02 09:44:59 CEST

Hey all,

I recently wrote a script to allow me to log into any server via ssh
from the command line
by using a passphrase and a server alias.

The idea is to not have to remember or look up ips/usernames/passwords
to administer servers
via ssh.

Here's the output of the -h command line switch:

This program takes at least one parameter: <serveralias>
Optional params include:
                        
-a Add a new server:
        hosting.pl -a <serveralias> <username> <password> <ip>
                        
-u Add a new user to an existing server:
        hosting.pl -u <serveralias> <username> <password>
                        
-e Edit a user on an existing server:
        hosting.pl -e <serveralias> <username> <newpassword>

-x Export configuration file to a new file
        with a different passphrase:
        hosting.pl -x <exportfilename> <newpassphrase>
        
-c Change your passphrase:
        hosting.pl -c

-l List all accounts on file.

-n Start encrypted config from scratch.
   Do this if you have no config file yet (this is your first
   time running this script).

The config file that holds the server info is encrypted using blowfish
via the Crypt::Simple module.

I figured this could be useful to some of you.

Here's the link to the script:
http://svnhosting.org:8000/svn/bsimmons/Prompts/hosting.pl

Let me know any comments/questions/criticism.

-- 
Regards,
Bryan Simmons
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
 Always code as if the guy who ends up maintaining your code will 
 be a violent psychopath who knows where you live.
   -- Rick Osborne
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Sat Oct 2 09:45:40 2004

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.