Skip to main content

cloud_ssh_config generates ssh config file content from given cloud service

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

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.

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

cloud_ssh_config-0.2.0.tar.gz (5.2 kB view details)

Uploaded Source

Built Distribution

cloud_ssh_config-0.2.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file cloud_ssh_config-0.2.0.tar.gz.

File metadata

  • Download URL: cloud_ssh_config-0.2.0.tar.gz
  • Upload date:
  • Size: 5.2 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 cloud_ssh_config-0.2.0.tar.gz
Algorithm Hash digest
SHA256 c1280a89d8e5d6660a648b165efee96d64df98f03e97991fcb5ba9573b369c95
MD5 7d7d24f0be8a657a7631cf9e448f7fd7
BLAKE2b-256 ae17627dd4e8d2cb6ab4de600dbf4c38fa950cb961c2edd2168d60d31db4c0c6

See more details on using hashes here.

File details

Details for the file cloud_ssh_config-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: cloud_ssh_config-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 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 cloud_ssh_config-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ae68b4456b2f4ff2dc8e663379e185347b4e25197a1a5d602ce85e1f1b9ffe20
MD5 1e2eca9c0e5b1aa6f65668f8cc6f111b
BLAKE2b-256 2fb77c82b50a836ff80d90d0b96e6cd615f23d1ce893a7b0cca734d77f399f6e

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