Autocomplete SSH hosts for AWS
Setup autocompletion
To get it working you need to install bash-completion and boto3 python library.
On MacOS X run:
$ brew install bash-completion
Create symlink to .bash_autocompletion file in your home folder:
$ ln -sf $(pwd)/.bash_autocompletion ~/
Import .bash_autocompletion in your ~/.bashrc:
$ echo 'source ~/.bash_autocompletion' >> ~/.bashrc
$ . ~/.bash.rc
Installing
The easiest way to install cloud_ssh_config is to use pip:
$ pip install cloud_ssh_config
or from sources:
$ git clone https://github.com/DmitriyLyalyuev/cloud_ssh_config.git
$ cd cloud_ssh_config
$ python3 setup.py install
Generating/updating ssh config
Create for ssh config.d folder:
$ mkdir -p ~/.ssh/config.d
To generate or update ssh config for AWS hosts run:
cloud_ssh_config aws > ~/.ssh/config.d/aws
Use -h or --help key to get help and options.
Usage
To test autocompletion enter in terminal:
$ ssh host_[TAB]
Supported cloud providers
AWS
To get it working you need to run:
$ pip install awscli
$ aws configure
Enter your credentials to get access to the AWS API.
Or you can use environment variables.
DigitalOcean
Before use it you need register token and run it like:
$ cloud_ssh_config digitalocean --token place_your_token_here
Metadata
Release files for cloud-ssh-config 0.2.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 |
|---|---|---|---|---|
| cloud_ssh_config-0.2.2.tar.gz | 5.3 kB | Without provenance | Details for cloud_ssh_config-0.2.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cloud_ssh_config-0.2.2-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for cloud_ssh_config-0.2.2-py2.py3-none-any.whl |
Total release size: 14.8 kB
Release files / cloud_ssh_config-0.2.2.tar.gz
| Download URL | cloud_ssh_config-0.2.2.tar.gz |
|---|---|
| Size | 5.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2771652943f2a8876c04f948cc4f4e0a140ec5e208056b874501e3a604d1ce8c
|
|
BLAKE2b-256 checksum How to use checksums |
8e6a979857d3b435842d3295abb08364be1b4c9c4dfde1dfdb292a3d048798dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0
|
Release files / cloud_ssh_config-0.2.2-py2.py3-none-any.whl
| Download URL | cloud_ssh_config-0.2.2-py2.py3-none-any.whl |
|---|---|
| Size | 9.4 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
5499396d069a1012965615e7ccdcc7bfeb58e551fdc3e5203d7e4c71d811def4
|
|
BLAKE2b-256 checksum How to use checksums |
854a8cae6ff3bb46ef205f088744bbd07d2e80a37f5066dbf0164eaf727d71fb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.4.2 requests/2.20.0 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.27.0 CPython/3.7.0
|
Security for cloud-ssh-config 0.2.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.