Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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'
```