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.3.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 | |
|---|---|---|---|
| cloud_ssh_config-0.3.0.tar.gz | 6.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cloud_ssh_config-0.3.0-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details |
Total release size: 16.8 kB
Release files / cloud_ssh_config-0.3.0.tar.gz
| Download URL | cloud_ssh_config-0.3.0.tar.gz |
|---|---|
| Size | 6.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d744db68dcd003f5d3c78419a280bab0336981cdf1361f404a4fbcf1887f9b9a
|
|
BLAKE2b-256 checksum How to use checksums |
431a5569da027c4b10341e36b2f1d4dbae171c565b0a6dbb511e37e496937cfc
|
| 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.3.0-py2.py3-none-any.whl
| Download URL | cloud_ssh_config-0.3.0-py2.py3-none-any.whl |
|---|---|
| Size | 10.8 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
f35dd945c5f10eb71c8b930d9cae6315fe793eab47508129c80e9a765f738ee0
|
|
BLAKE2b-256 checksum How to use checksums |
5e81112404c66719237aeb89e41f28d39b342d9cafbea2aec849973c9ba6e3c1
|
| 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
|