Knife plugin for OpenSSH config file management

20 Sep 2011

A quick, raw new Knife plugin I just wrote to solve a problem for developers who need to use an OpenSSH config file to remember which servers are where.

Works best when used with bash-completion and this type of thing in your Bash config:

 complete -W "$(echo `cat ~/.ssh/config | grep Hostname | uniq | awk '{print $2}'`;)" ssh

Usage is simple:

knife sshgen -p (print to screen)
knife sshgen -w (append to current config, usually ~/.ssh/config)

Source:

On GitHub: https://github.com/harvesthq/knife-plugins