provision.pl - fixed an escape
This commit is contained in:
parent
d184c69bc4
commit
f6e1723d3d
@ -198,7 +198,7 @@ system("chmod 770 /usr/local/sbin/ngircd-ctl");
|
|||||||
|
|
||||||
# Disable root login
|
# Disable root login
|
||||||
system("sed -i -e 's/^[^#]*PermitRootLogin.*\$/PermitRootLogin no/' /etc/ssh/sshd_config");
|
system("sed -i -e 's/^[^#]*PermitRootLogin.*\$/PermitRootLogin no/' /etc/ssh/sshd_config");
|
||||||
system("sed -i -e 's/^PasswordAuthentication.*$//' /etc/ssh/sshd_config");
|
system("sed -i -e 's/^PasswordAuthentication.*\$//' /etc/ssh/sshd_config");
|
||||||
system("echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config");
|
system("echo 'PasswordAuthentication no' >> /etc/ssh/sshd_config");
|
||||||
system("rcctl restart sshd");
|
system("rcctl restart sshd");
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user