https://github.com/christianvozar/aws-ssh
SSH inventory config generation for Amazon Web Services.
https://github.com/christianvozar/aws-ssh
amazon-web-services ansible go inventory ssh
Last synced: 2 months ago
JSON representation
SSH inventory config generation for Amazon Web Services.
- Host: GitHub
- URL: https://github.com/christianvozar/aws-ssh
- Owner: christianvozar
- License: mit
- Created: 2015-03-01T19:39:11.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2020-02-17T04:08:48.000Z (over 6 years ago)
- Last Synced: 2024-04-17T21:21:03.069Z (about 2 years ago)
- Topics: amazon-web-services, ansible, go, inventory, ssh
- Language: Go
- Homepage:
- Size: 13.7 KB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 3
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE.markdown
Awesome Lists containing this project
README
# aws-ssh
Generate inventory of SSH connections for Amazon Web Services.
# Installation
Executing will produce entries for your SSH config file for all running instances on EC2 for the given tag. This is easily piped into the SSH config file directly. When combined with auto-completion and a cron-entry you can auto-complete SSH for your instances with ease.
`$ AWS_ACCESS_KEY=FOIJEWOEIJDFUHIJ AWS_SECRET_KEY=joasd8jf8a9sjdfaj30jfiojf PRIVATE=true STRICT=false ./aws-ssh > ~/.ssh/config`
### macOS Users
For auto-complete (tab) to work you will need to add a line similar to this to your /etc/bashrc file.
`$ complete -o default -o nospace -W "$(grep -i -e '^host ' ~/.ssh/config | awk '{print substr($0, index($0,$2))}' ORS=' ')" ssh scp sftp`