Thanks to Nick Rosenberg for helping refine some of the commands.
– Edited the gathering of PermitRootLogin to ignore comments
-Â Edited my_ntp_server to use sed
Thanks to Nick Rosenberg for helping refine some of the commands.
– Edited the gathering of PermitRootLogin to ignore comments
-Â Edited my_ntp_server to use sed
Hi, I think your copy/paste messed up slightly as it has put quotes as full stops in the script.
Should read:
my_ntp_server=`grep ^server /etc/ntp.conf|sed -e “s/^server *//”`
my_ssh_rootlogin=`grep PermitRootLogin /etc/ssh/sshd_config | grep -v “#”`
Thanks
Nick