Skip to content

DmitriyLyalyuev/aws_ssh_config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]

About

Autocomplete hosts from AWS for SSH

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages