A simple python menu program to help manage ssh to places you want to be.
Built on the curses menu work from:
https://gist.github.com/abishur/2482046
http://blog.skeltonnetworks.com/2010/03/python-curses-custom-menu/
Author: Steven hk Wong
Usage: sshplaces.py [-h] [-v] [-g] [-f configuration_file]
-h this help
-v version
-g generates a sample servers.yaml file
-f configuration file
if configuration file is unspecified these are the search location in priority:
./servers.yaml
~/.sshplaces/servers.yaml
/etc/sshplaces/servers.yaml
<pre>
Example configuration file:
============================================================================
---
- home:
- bedroom-server:
cmd: ssh bedroom.example
state: active
- laptop:
cmd: ssh laptop.example
state: active
- office:
- server1:
cmd: ssh server1.example
state: active
- server2:
cmd: ssh server2.example
state: active
- admin:
- internet modem (number 1):
cmd: ssh -p 2222 admin@modem.example
state: active
- dmz (number 2):
cmd: ssh -p 2222 admin@dmz.example
state: active
</pre>
Built on the curses menu work from:
https://gist.github.com/abishur/2482046
http://blog.skeltonnetworks.com/2010/03/python-curses-custom-menu/
Author: Steven hk Wong
Usage: sshplaces.py [-h] [-v] [-g] [-f configuration_file]
-h this help
-v version
-g generates a sample servers.yaml file
-f configuration file
if configuration file is unspecified these are the search location in priority:
./servers.yaml
~/.sshplaces/servers.yaml
/etc/sshplaces/servers.yaml
<pre>
Example configuration file:
============================================================================
---
- home:
- bedroom-server:
cmd: ssh bedroom.example
state: active
- laptop:
cmd: ssh laptop.example
state: active
- office:
- server1:
cmd: ssh server1.example
state: active
- server2:
cmd: ssh server2.example
state: active
- admin:
- internet modem (number 1):
cmd: ssh -p 2222 admin@modem.example
state: active
- dmz (number 2):
cmd: ssh -p 2222 admin@dmz.example
state: active
</pre>
Release files for sshplaces 0.1.15
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sshplaces-0.1.15.tar.gz | 20.2 kB | Details |
Release files / sshplaces-0.1.15.tar.gz
| Download URL | sshplaces-0.1.15.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
41add0c3d63306f15de7643e966bbefd12e72289898d5d772238294744ef51b2
|
|
BLAKE2b-256 checksum How to use checksums |
33f999cb5728a53f66ae3485ab1d17ec170e8db089f12c1e211bb617b3496084
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.9.1 pkginfo/1.4.1 requests/2.13.0 setuptools/37.0.0 requests-toolbelt/0.8.0 tqdm/4.19.5 CPython/2.7.15
|