sshed is a minimal Python wrapper for Parmaiko to help you work with SSH very easy.
Examples
Creating a server from your ~/.ssh/config with ssh keys created. This also
uses a host alias.
python
from sshed import servers
server = servers.from_conf('development')
server.run('whoami').output
>> ['cwood']
server.run('sudo whoami').output
>> ['root']
server.run('cd /var/www').returncode
>> 0
server.run('pwd').output
>> ['/var/www']
Creating a server from just a hostname
python
from sshed import servers
server = servers.from_conf('myserver.com')
server.run('hostname').output
>> ['myserver.com']
Creating a new server without a ssh config
python
from sshed.servers import Server
server = Server(username='username', hostname='development.mycompany.com',
password='supersecretpassword')
server.run( ... )
Product's homepage
Requirements:
· Python