pysch - Python-made SSH Connection Manager
pysch (spelled in Russian as пыщ, just for fun), Python-made SSH Connection Helper, is an SSH Client based on paramiko for Mac and Linux. It uses keepass to securely store remote hosts credentials and YAML to maintain inventory tree. It also supports session logging to a file.
Installation
Just use pip to install pysch:
python -m venv venv
cd venv
source bin/activate
pip3 install pysch
Usage
Here is the avaiable commands:
(venv) % pysch
Usage: pysch [OPTIONS] COMMAND [ARGS]...
Options:
-c, --config PATH Path to configuration file
-l, --loglevel [CRITICAL|ERROR|WARNING|INFO|DEBUG]
--help Show this message and exit.
Commands:
add-credentials Add new credendials
connect Connect to the host
init Create initial config and inventoty
list-credentials Get list of credendials
list-hosts Get list of hosts
First, init the configuration. That creates sample configuration and inventory files with empty keepass file protected with key in ~/.config/pysch/ directory:
(venv) % pysch init
Default configuration has been saved at ~/.config/pysch/
Then add your hosts to the ~/.config/pysch/inventory.yaml using the text editor of your choise and credentials for it using any keepass software or the add-credentials command:
(venv) % pysch add-credentials
Title: my_credentials
Username: root
Password:
Repeat for confirmation:
"my_credentials" entry has been added to the keepass db
Use --help to show arguments and available options for a command:
(venv) % pysch connect --help
Usage: pysch connect [OPTIONS] HOST
Connect to the host
Options:
--session-log PATH Session log file location
--help Show this message and exit.
Connection process is pretty simple:
(venv) % pysch connect srv
Connecting to srv
root@my-shiny-server.example.com:~#
Metadata
Release files for pysch 0.1.0
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 |
|---|---|---|---|---|
| pysch-0.1.0.tar.gz | 20.1 kB | Without provenance | Details for pysch-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysch-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for pysch-0.1.0-py3-none-any.whl |
Total release size: 40.5 kB
Release files / pysch-0.1.0.tar.gz
| Download URL | pysch-0.1.0.tar.gz |
|---|---|
| Size | 20.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2963bd4c188a6b16a8818e3d55fd181da3212f782c4d2b3ac44a24509b1718ed
|
|
BLAKE2b-256 checksum How to use checksums |
8f38a2d26d8bd8b1055640ebbd372071d87424b9f977009896111f680b87bc19
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Release files / pysch-0.1.0-py3-none-any.whl
| Download URL | pysch-0.1.0-py3-none-any.whl |
|---|---|
| Size | 20.4 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
0141ed146bc54984aaf0d00389e4e3f3a62da959b8e15f53569daf9bd641fe24
|
|
BLAKE2b-256 checksum How to use checksums |
bbe37c5d133bbe9931289463ae45c4085eaf20bb6a08c8556c6801ff7019b3a4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.2 CPython/3.9.16
|
Security for pysch 0.1.0
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.