Update 'cloud_setup.sh'

main
Edwin Lyon 2 years ago
parent 62c81b1235
commit 475210c87c
  1. 3
      cloud_setup.sh

@ -252,5 +252,8 @@ ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ""
awk '$5 >= 3071' /etc/ssh/moduli > /etc/ssh/moduli.safe
mv /etc/ssh/moduli.safe /etc/ssh/moduli
# GRUB enable swap and disable root recovery
echo 'GRUB_CMDLINE_LINUX="cgroup_enable=memory swapaccount=1"' >> /etc/default/grub
echo 'GRUB_DISABLE_RECOVERY="true"' >> /etc/default/grub
echo '######################################################################################################################### UNAUTHORIZED ACCESS TO THIS DEVICE IS PROHIBITED ## You must have explicit, authorized permission to access or configure this device. ## Unauthorized attempts and actions to access or use this system may result in civil and/or criminal penalties. ## All activities performed on this device are logged and monitored. ## Disconnect IMMEDIATELY if you are not an authorized user! #########################################################################################################################' > /etc/motd
Loading…
Cancel
Save