Project

ssh-conf

0.0
No commit activity in last 3 years
No release in over 3 years
Displays ssh config for given hosts
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 0
 Project Readme

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.