I've to write an small script to modify /etc/ssh/sshd_config
if this file is not matching with my checklist.
For examples I've to check below entries are matched, if not I need to replace with below entires:
Banner /etc/motd
GatewayPorts no
KeyRegenerationInterval 3600
LoginGraceTime 120
LogLevel INFO
PermitEmptyPasswords No
PermitRootLogin No
- Is
/etc/ssh/sshd_config
will be always like: One entry in a line like above or can it be any uses delimiter (Banner /etc/motd, GatewayPorts no
)? - Can comments can be anywhere in line (like C programming) or it should start at beginning of the line with
#
?