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
There are limitations:
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.