Skip to content

Latest commit

 

History

History
28 lines (16 loc) · 834 Bytes

README.md

File metadata and controls

28 lines (16 loc) · 834 Bytes

ssh-conf

Gem which prints ssh_config(5) for given hosts.

Installation

$ gem install ssh-conf

Usage

Usage: ssh-conf [options]
    -a, --all                        Search all default SSH config files on system
        --files FILES                Comma separated list of files to process
    -p, --pretty                     Pretty output
    -f, --format format              Output format (text, json)
    -h, --help                       Show this message

By defaults it outputs config in plain text, tab separated format.

It can be changed to ouput to JSON, pretty JSON or pretty-ish text.

Only ~/.ssh/config files is parsed by default.

Thanks

Thanks to the creators of net-ssh gem for parsing logic.