A curses menu of ssh places.
Project description
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>
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sshplaces-0.1.15.tar.gz
(20.2 kB
view details)
File details
Details for the file sshplaces-0.1.15.tar.gz
.
File metadata
- Download URL: sshplaces-0.1.15.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 41add0c3d63306f15de7643e966bbefd12e72289898d5d772238294744ef51b2 |
|
MD5 | 3de0cec79f15750ac3d4783d0038bdce |
|
BLAKE2b-256 | 33f999cb5728a53f66ae3485ab1d17ec170e8db089f12c1e211bb617b3496084 |