correct ssh config sed command
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user