Hi there, I'm in a situation where some of my clients have all these obscurity things with ssh, like putting it on a different port, or a different user to login for this specific host not mention several don't have proper DNS names and and and. Life is to short to debate it with the client so rather get in line, use ssh_config, and continue to serve the client. However, now I have the case that the ssh_config file on the desktop, is out of sync with the laptop, is out of sync with the jump is out of sync with the helping hand and generally it's out of sync. Yes, considering git/etc. but still, I'm stuck with some specific other settings that's different from the laptop from the desktop etc. Now my first solution would be: sort < ssh_config > laptop.conf; diff latop.conf desktop.conf, but the file layout just doesn't work with that :( Questions: - Is there anybody that see a value in a format/parser/matcher for ssh_config files to be able to merge/"diff"/sort these files? - Any other ideas/solutions I could consider to manage these ssh_config files?
On Feb 18, 2015 2:53 PM, "Hendrik Visage" <hvjunk at gmail.com> wrote:>> > Questions: > - Is there anybody that see a value in a format/parser/matcher for > ssh_config files to be able to merge/"diff"/sort these files?I've started on a perl module to go through an ssh config and compile what ssh should do for a given host (mainly to only ssh-add a key when a host is configured to use it). I would prefer an abstract config backend though.> - Any other ideas/solutions I could consider to manage these ssh_configfiles?>You can make a compile script that takes ordered parts of a config and builds an ssh_config and then you're only checking in and/or comparing project specific bits.
This approach works well, and can scale. A critical part is to sanity check the result for compatibility. Nico Kadel-Garcia Email: nkadel at gmail.com Sent from iPhone> On Feb 18, 2015, at 17:11, shawn wilson <ag4ve.us at gmail.com> wrote: > >> On Feb 18, 2015 2:53 PM, "Hendrik Visage" <hvjunk at gmail.com> wrote: > >> >> Questions: >> - Is there anybody that see a value in a format/parser/matcher for >> ssh_config files to be able to merge/"diff"/sort these files? > > I've started on a perl module to go through an ssh config and compile what > ssh should do for a given host (mainly to only ssh-add a key when a host is > configured to use it). I would prefer an abstract config backend though. > >> - Any other ideas/solutions I could consider to manage these ssh_config > files? > > You can make a compile script that takes ordered parts of a config and > builds an ssh_config and then you're only checking in and/or comparing > project specific bits. > _______________________________________________ > openssh-unix-dev mailing list > openssh-unix-dev at mindrot.org > https://lists.mindrot.org/mailman/listinfo/openssh-unix-dev