Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sarcasticadmin/sshcb
Openssh client config built from cloud metadata
https://github.com/sarcasticadmin/sshcb
aws golang openssh openssh-client
Last synced: about 2 months ago
JSON representation
Openssh client config built from cloud metadata
- Host: GitHub
- URL: https://github.com/sarcasticadmin/sshcb
- Owner: sarcasticadmin
- License: bsd-2-clause
- Created: 2018-07-09T18:05:00.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-03-20T03:09:30.000Z (almost 4 years ago)
- Last Synced: 2024-06-20T05:26:53.230Z (7 months ago)
- Topics: aws, golang, openssh, openssh-client
- Language: Go
- Size: 37.1 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# SSH Config Builder
Used to generate an `ssh_config` from cloud resources (only aws currently)
> Note: Currently experimental## Build
Assuming GOPATH is correctly configured:
```
go get github.com/sarcasticadmin/sshcb
cd $GOPATH/src/github.com/sarcasticadmin/sshcb
make build
```## Examples
Create ssh_config from all `ec2` instances in `us-west-2` with user `ubuntu`:
```
sshcb -r us-west-2 -u ubuntu -o ~/.ssh/config.us-west-2
ssh -F ~/.ssh/config.us-west-2 coolinstance
```Create ssh_config with aws profile `env1` and only with ec2 instances tagged `env:prod`:
```
sshcb -r us-west-2 --tags 'env:prod'
```