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 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]

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.3.tar.gz (2.7 kB view details)

Uploaded Source

Built Distributions

aws_ssh_config-0.1.3-py3.7.egg (3.0 kB view details)

Uploaded Source

aws_ssh_config-0.1.3-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aws_ssh_config-0.1.3.tar.gz
  • Upload date:
  • Size: 2.7 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.3.tar.gz
Algorithm Hash digest
SHA256 e4a81fc0794b94d52fc34dba134e69d7e8c701c5ccaff3c2d74a5d2822ccb049
MD5 da9575fe12cd26a98cada61ef2bc3318
BLAKE2b-256 864d0a9d9f53625155455192eee94a0cead575f95270478ac2ce3201aab9638a

See more details on using hashes here.

File details

Details for the file aws_ssh_config-0.1.3-py3.7.egg.

File metadata

  • Download URL: aws_ssh_config-0.1.3-py3.7.egg
  • Upload date:
  • Size: 3.0 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.3-py3.7.egg
Algorithm Hash digest
SHA256 eee292f40556cad3881d22c06d871f20e0cc7182a26e407bdef3ce8d5393f9ea
MD5 c6891d2a2f8f9f79581476c8ba58892d
BLAKE2b-256 42085dea644f999218bcdba998561a72e5745e20ee11480bfdea41c38c474de5

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aws_ssh_config-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 3.7 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.3-py3-none-any.whl
Algorithm Hash digest
SHA256 83f2050a56d63b3f2b7a9aab945db38cf44360d6744a08d8ec5463272c694ef5
MD5 b0a942cb71f59bf265722b01c8f80156
BLAKE2b-256 e69c1c0d6c3e8fb4f768c68b0caeccceaac636bac71addf7e6d1da7391c97014

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