Is there a command to set settings in sshd_config, instead of manually editing the file? I would prefer it to do this way, because it's easier to automate. Otherwise I'd have to grep config with my script.
|
|
||||
|
Although there is no standard tool to change settings in It supports:
There are limitations:
It can be found on http://bazaar.launchpad.net/~ubuntu-branches/ubuntu/oneiric/openssh/oneiric/view/head:/debian/openssh-server.postinst An alternative to such functions using
Obviously, this only works if Port was defined before. As an alternative, you can remove existing settings and append the new setting:
|
|||
|
|
|
Most applications that provide separate wrappers to edit their config files do so to avoid dangerous race conditions (like the So the short answer is no. However, that doesn't stop you from making your own. |
|||||||
|
/etcfiles under version control. I recommendetckeeper. – Faheem Mitha Dec 17 '11 at 15:38