Move to all shell scripts
This commit is contained in:
@@ -92,7 +92,7 @@ EOF
|
||||
|
||||
# sshd: disable password authentication and DNS checks
|
||||
ex -s /etc/ssh/sshd_config <<EOF
|
||||
:%substitute/^\(PasswordAuthentication\) yes$/\1 no/
|
||||
:%substitute/^.*\(PasswordAuthentication\) yes$/\1 yes/
|
||||
:%substitute/^#\(UseDNS\) yes$/&\r\1 no/
|
||||
:update
|
||||
:quit
|
||||
|
||||
Reference in New Issue
Block a user