Skip to main content

Minimal Parmaiko wrapper to make working with SSH easy.

Project description

sshed
===================

sshed is a minimal paramiko wrapper that makes working with ssh through python
just like working with it in normal SSH. It will use your configuration that
you have already created first then any extra options can be passed in through
the library that is using it. Servers are base objects that can be extended
to do other tasks. Also the API is dead simple.


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( ... )
```

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sshed-0.1.1rc.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file sshed-0.1.1rc.tar.gz.

File metadata

  • Download URL: sshed-0.1.1rc.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sshed-0.1.1rc.tar.gz
Algorithm Hash digest
SHA256 34dcecc54bf540667a49e075f7772960442034c80d501848412f25bf1229dcd1
MD5 cb32ba88e2cb1b4ae62f7f70907a0967
BLAKE2b-256 075994890590783b9b75d2ce32f4d7788ae58612cc416fb89a314c0b22e6f624

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page