correct ssh config sed command

This commit is contained in:
2018-12-13 13:06:40 -05:00
parent 05fc1dbadb
commit d942d57474

View File

@@ -41,7 +41,7 @@ elif [ -f /etc/redhat-release ]; then
systemctl start yum-cron
# modify ssh to allow root login and then restart the service
sed --in-place "/S^#PermitRootLogin\ yes/PermitRootLogin\ yes/" /etc/ssh/sshd_config
sed --in-place "s/^#PermitRootLogin\ yes/PermitRootLogin\ yes/" /etc/ssh/sshd_config
systemctl restart sshd
else