sshconfgen

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 1 Imported by: 0

README

sshconfgen

Generate ~/.ssh/config host entries based on an inventory file and one or more templates:

inventory:
  - name: webserver
    ip: 10.0.0.2
  - name: database
    ip: 10.0.0.10
name: Simple example
config:
  host: "{{.name}} {{.name}}.example.com"
  hostname: "{{.ip}}"

Output:

# File generated by sshconfgen; DO NOT EDIT.

# Simple example

Host webserver webserver.example.com
        Hostname 10.0.0.2

Host database database.example.com
        Hostname 10.0.0.10

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL