[Zope] SSH window script

Bryan Simmons bryan.simmons at gmail.com
Sat Oct 2 03:45:51 EDT 2004


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
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


More information about the Zope mailing list