Skip to main content

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
$ pip install boto3 awscli
$ aws configure

Enter your credentials to get access to the AWS API.

Or you can use environment variables.

Create symlink to .ssh_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 aws_ssh_config is to use pip:

$ pip install aws_ssh_config

or from sources:

$ git clone https://github.com/DmitriyLyalyuev/aws_ssh_config.git
$ cd aws_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:

aws_ssh_config > ~/.ssh/config.d/aws

Usage

To test autocompletion enter in terminal:

$ ssh host_[TAB]

Metadata

Release files for aws-ssh-config 0.1.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for aws-ssh-config 0.1.4
File Size Uploaded
aws_ssh_config-0.1.4.tar.gz 2.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for aws-ssh-config 0.1.4
File Interpreter ABI Platform
aws_ssh_config-0.1.4-py3-none-any.whl Python 3 none any Details

Total release size: 6.4 kB

Release files / aws_ssh_config-0.1.4.tar.gz

Download URL aws_ssh_config-0.1.4.tar.gz
Size 2.7 kB
Tags Source
SHA-256 checksum
How to use checksums
950c27891a15d2dcbc02bc10a7b52de123e2820c4e1e293d646f479e5a736a18
BLAKE2b-256 checksum
How to use checksums
53e6e6a5f707fdb41c0b1dc560889db1c493edf731282eec119e0723b8fd807a
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 / aws_ssh_config-0.1.4-py3-none-any.whl

Download URL aws_ssh_config-0.1.4-py3-none-any.whl
Size 3.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5e26aeecc3e513fb61c51d902496a271e2d0cd69e28cf4a5ff1846566695ca1d
BLAKE2b-256 checksum
How to use checksums
c8c873891281e7aca9894656c59fbfc40b7adfee49c99ddc772e437e47b026c9
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 history Release notifications | RSS feed

This release

0.1.4 This release

2 release files

0.1.3

3 release files

0.1.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page