Live data from Hacker News

Managing SSH configurations with Python

emreyilmaz.me

1–7 of 7 posts

Re: Managing SSH configurations with Python

#4
post #3

Paramiko [1] parses SSH configs, but Emre's lib is an improvement as it also updates configs. [1] http://www.lag.net/paramiko/docs/paramiko.SSHConfig-class.ht...

Additionaly, storm's parser includes a bunch of fixes for multiple hostnames, multiple localforward/remoteforward directions and comment line handling.

Re: Managing SSH configurations with Python

#5
I get it if you're not familiar with puppet/chef/cfengine and super familiar with python, might as well - whatever works. But what is the use case of configuring ssh this way, than with chef or puppet or cfengine?

FYI my question comes from the point-of-view of someone who leans towards sysadmin work.

Re: Managing SSH configurations with Python

#6
post #5

I get it if you're not familiar with puppet/chef/cfengine and super familiar with python, might as well - whatever works. But what is the use case of configuring ssh this way, than with chef or puppet or cfengine? FYI my question comes from the point-of-view of someone who leans towards sysadmin work.

Chef/Puppet are typically used for managing servers. Using them to configure the SSH client configuration on your laptop is very likely overkill.

This falls more within the terrain of orchestration rather than config mgmt. You might want to rely on your munging your SSH config rather than something more elaborate like "knife ssh", fabric, mcollective, salt, etc.