Skip to content

Commit

Permalink
B #-: Delete 50-cloud-init.conf allowing pass auth
Browse files Browse the repository at this point in the history
  • Loading branch information
xorel committed Nov 23, 2023
1 parent 831e79b commit afa0cb7
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packer/alma/81-configure-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ BEGIN { update = "UseDNS no" }
END { if (!found) print update >> FILENAME }
EOF

rm -rf /etc/ssh/sshd_config.d/*-cloud-init.conf

sync
2 changes: 2 additions & 0 deletions packer/centos/81-configure-ssh.sh.7
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,6 @@ END { if (!found) print update >> FILENAME }
EOF
mv /etc/ssh/sshd_config{.new,}

rm -rf /etc/ssh/sshd_config.d/*-cloud-init.conf

sync
2 changes: 2 additions & 0 deletions packer/centos/81-configure-ssh.sh.8stream
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ BEGIN { update = "UseDNS no" }
END { if (!found) print update >> FILENAME }
EOF

rm -rf /etc/ssh/sshd_config.d/*-cloud-init.conf

sync
2 changes: 2 additions & 0 deletions packer/rhel/81-configure-ssh.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,6 @@ BEGIN { update = "UseDNS no" }
END { if (!found) print update >> FILENAME }
EOF

rm -rf /etc/ssh/sshd_config.d/*-cloud-init.conf

sync

0 comments on commit afa0cb7

Please sign in to comment.