Skip to main content

aws_ssh_config generates ssh config file content from given AWS account

Project description

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 AWS API.

Create symlink to .ssh_autocompletion file in your home folder:

$ ln -sf  $(pwd)/.ssh_autocompletion ~/

Import .ssh_autocompletion in your ~/.bashrc:

$ echo 'source ~/.ssh_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

and create symlink to script in /usr/local/bin:

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]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws_ssh_config-0.1.2.tar.gz (2.5 kB view details)

Uploaded Source

Built Distribution

aws_ssh_config-0.1.2-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file aws_ssh_config-0.1.2.tar.gz.

File metadata

  • Download URL: aws_ssh_config-0.1.2.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for aws_ssh_config-0.1.2.tar.gz
Algorithm Hash digest
SHA256 a321d4c1be349f4e791243082a0f1b7847af919275a1561d2ec752825e75d087
MD5 92c48ba31facb51b5df988133562abe6
BLAKE2b-256 5b464010ff3ff80583e04498787723adb2058ec156daf2878ea947b2b1148968

See more details on using hashes here.

File details

Details for the file aws_ssh_config-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: aws_ssh_config-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for aws_ssh_config-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 5a2638d4b1077806b1a500e7856f2a99f220e6eec8057d75df8a9f114c82d2ae
MD5 0aacf33a8e5d800a52e35a20828d6bb4
BLAKE2b-256 d9f02c6d23050d2cfb13dc35bbd5d9961d58f58229083033e6cf5eb8bebd91f1

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page