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