Move to all shell scripts

This commit is contained in:
Greg Hellings
2023-08-23 16:26:13 -05:00
parent 4f03ff3d62
commit 18ff595f9b
13 changed files with 24 additions and 23 deletions
+2 -5
View File
@@ -83,16 +83,13 @@ 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
EOF
cat >>/etc/sysconfig/sshd <<EOF
echo << EOF > /etc/ssh/sshd_config.d/00-vagrant_accept_pubkey.conf
PubkeyAcceptedKeyTypes +ssh-rsa
EOF
echo PubkeyAcceptedKeyTypes +ssh-rsa >> /etc/ssh/sshd_config
# Decrease connection time by preventing reverse DNS lookups
# (see https://lists.centos.org/pipermail/centos-devel/2016-July/014981.html