ssh-ec2
Make ssh to EC2 instances easier
Install:
pip install ssh-ec2
Setup:
Add the following to your shell rc (.bashrc, .bash_profile, .zshrc):
#compdef ssh_ec2
_ssh_ec2() {
eval $(env COMMANDLINE="${words[1,$CURRENT]}" _SSH_EC2_COMPLETE=complete-zsh ssh_ec2)
}
if [[ "$(basename -- ${(%):-%x})" != "_ssh_ec2" ]]; then
autoload -U compinit && compinit
compdef _ssh_ec2 ssh_ec2
fi
Example Usage:
ssh_ec2 select [TAG NAME] [TAG VALUE] [IP ADDRESS|all|random]
Usage: ssh_ec2 [OPTIONS] COMMAND [ARGS]...
Options:
--help Show this message and exit.
Commands:
select
Tab completion for all commands and arguments. If you don't need a specific IP then use random to select one of the hosts at random or all to go to each host in turn.
Note:
If tag names have a : in them they are replaced with _COLON_ this is due to zsh treating text after a colon as help text
Metadata
Release files for ssh-ec2 0.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 | |
|---|---|---|---|
| ssh-ec2-0.0.2.tar.gz | 4.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ssh_ec2-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 20.9 kB
Release files / ssh-ec2-0.0.2.tar.gz
| Download URL | ssh-ec2-0.0.2.tar.gz |
|---|---|
| Size | 4.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9a636fe446fab543041fd5c2c549ed2df18d120aca196c683e66b74eb9308a9d
|
|
BLAKE2b-256 checksum How to use checksums |
b58506bf2c7932a5198e1126d59e01351b646bd5261bccfe8a3ffec5a2f65c90
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
|
Release files / ssh_ec2-0.0.2-py3-none-any.whl
| Download URL | ssh_ec2-0.0.2-py3-none-any.whl |
|---|---|
| Size | 16.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8bf75318c0d70953fc9d466bc8f72d3c5148a36cb08916dca8fa3a9440f3d76b
|
|
BLAKE2b-256 checksum How to use checksums |
d645c866cdd4885843adec5e77b5e660443a08e46d394957f11cfcc125a2e3c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0
|