awscreds stores AWS credentials in Mac OS Keychain
Project description
Autocomplete SSH hosts for cloud providers
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.
DigitalOcean
Before use it you need register token and run it like:
$ cloud_ssh_config digitalocean --token place_your_token_here
Scale Way
To get it working you should get API token.
$ cloud_ssh_config digitalocean --token place_your_token_here
Sure you can specify region (default is ams1
):
$ cloud_ssh_config digitalocean --token place_your_token_here -R par1
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
Built Distribution
Hashes for awscreds-0.0.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7db0f44b765ffe64e92b430d264eb7b19f6455c95dcdec7ccc542b41d9b94ab2 |
|
MD5 | 1923625fe5007e32b0d8630237545385 |
|
BLAKE2b-256 | b3d609f812e610df9e26642a4574a04818360c48b8ee4d9cbdb8029e32a3705e |