try to use sed instead
This commit is contained in:
parent
a69d82eb8c
commit
c6754418db
@ -603,12 +603,8 @@ Defaults:vagrant !requiretty
|
||||
EOF
|
||||
chmod 0440 /etc/sudoers.d/vagrant
|
||||
# This may have to be changed for 10
|
||||
ex -s /etc/ssh/sshd_config <<EOF
|
||||
:%substitute/^\(PasswordAuthentication\) yes$/\1 no/
|
||||
:%substitute/^#\(UseDNS\) yes$/&\r\1 no/
|
||||
:update
|
||||
:quit
|
||||
EOF
|
||||
sed -i 's/^\(PasswordAuthentication\) yes$/\1 no/' /etc/ssh/sshd_config
|
||||
sed -i 's/^#\(UseDNS\) yes$/\r\1 no/' /etc/ssh/sshd_config
|
||||
|
||||
cat >>/etc/sysconfig/sshd <<EOF
|
||||
# Decrease connection time by preventing reverse DNS lookups
|
||||
|
Loading…
Reference in New Issue
Block a user