Switch from default linux kernel to LTS
This commit is contained in:
@@ -16,6 +16,11 @@ chmod 700 /home/sysadmin/.ssh
|
||||
curl -so /home/sysadmin/.ssh/authorized_keys $REPO/raw/branch/master/post/ansible.pub
|
||||
chown -R sysadmin:admins /home/sysadmin/.ssh
|
||||
|
||||
echo -e "${GREEN}Switching to LTS Kernel...${NOCOL}"
|
||||
pacman --noconfirm -S linux-lts linux-lts-headers
|
||||
pacman --noconfirm -Rs linux
|
||||
grub-mkconfig /boot/grub/grub.cfg
|
||||
|
||||
echo -e "${GREEN}Disable root user SSH access...${NOCOL}"
|
||||
sed -i 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
|
||||
sed -i 's/PermitRootLogin without-password/PermitRootLogin no/' /etc/ssh/sshd_config
|
||||
|
Reference in New Issue
Block a user