SSHepherd: Automated SSH Host Management
Description
SSHepherd eases integration of new user accounts for SSH hosts without centralized user management by:
- Creating the new user account on the target host
- Adding them to security groups as applicable
- Placing ssh public keys as applicable
Features
SSHepherd is also capable of some other user management features:
- Take an inventory of users on each system
- Delete users from system groups
- A variety of functions across system groups:
- delete, lock and unlock users
- Update ssh keys
- reset passwords
- run arbitrary commands
Install
From PIP
pip3 install sshepherd
From Source
git clone https://github.com/drpresq/sshepherd.git
pip3 install ./sshepherd
Usage
usage: sshepherd [-h] [-a {list-users,add-users,run-command}]
[-t TARGETS [TARGETS ...]] [-p PATH]
[-c COMMAND [COMMAND ...]]
SSHepherd - herd your flock of ssh hosts
optional arguments:
-h, --help show this help message and exit
-a {list-users,add-users,run-command}, --action {list-users,add-users,run-command}
Action to be carried out on targets
-t TARGETS [TARGETS ...], --targets TARGETS [TARGETS ...]
List of ip addresses/hostnames to perform action upon
-p PATH, --path PATH
Path to New User SSH Public Keys. SSH Key names must conform to the following formats:
<username>.pub or <username>_somethingelse.pub
-c COMMAND [COMMAND ...], --command COMMAND [COMMAND ...]
Commands to be run on host separated by semicolons
Common Usage:
sshepherd -a list-users -t 192.168.1.1 192.168.1.2 Returns a list of users by IP
sshepherd -a add-users -t 192.168.1.1 -p /home/user/pub-keys Add users to each target based on key name
sshepherd -a run-command -t 192.168.1.1 -c sudo whoami; cat /etc/passwd Runs the two commands on each target
Metadata
Release files for sshepherd 0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sshepherd-0.2.tar.gz | 8.0 kB | Without provenance | Details for sshepherd-0.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sshepherd-0.2-py3-none-any.whl | Python 3 | none | any | Details for sshepherd-0.2-py3-none-any.whl |
Total release size: 15.4 kB
Release files / sshepherd-0.2.tar.gz
| Download URL | sshepherd-0.2.tar.gz |
|---|---|
| Size | 8.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62b0a8c8ba049457c9ed1a8cfb2ab1f5ef1cd98273d204a0a33bd7215035465f
|
|
BLAKE2b-256 checksum How to use checksums |
bd8e94004e50854aff3607657244859b5b4b4c23ae6dfa878c6f8d527e51ac87
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
|
Release files / sshepherd-0.2-py3-none-any.whl
| Download URL | sshepherd-0.2-py3-none-any.whl |
|---|---|
| Size | 7.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b035913fa392ac9ad8abdf3dd74a3b1e80c43288162926c6cd0378a286604ea0
|
|
BLAKE2b-256 checksum How to use checksums |
8be7979610b3a91ad5d11bff480e6b292db4eee16c7c8b0ebea17313ac0b26b4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.22.0 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.8.10
|
Security for sshepherd 0.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.