A tool I use to manage my ~/.ssh/config
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
ci
.drone.yml
.drone.yml.sig
README.md
main.go

README.md

sct -- SSH config templating

A tool I use to manage my ~/.ssh/config

CAUTION

Use this at your own risk. This WILL overwrite ~/.ssh/config no questions asked.

Installation

Get Go, and go get loe.yt/sct.

Use

ssh-config-template looks at all folders in ~/.sct/. In those folders it expects to find a template file, and a hosts.json file. The template file must be a valid text/template. The hosts.json must be a valid JSON Object, and each value in the Object will be passed to the template as {{.Name}} and {{.Value}}. Folders are processed in alphabetical order, and for each folder the hosts in hosts.json will be processed in alphabetical order.

More README coming soon, maybe.