Monday, October 22, 2018

Securing CentOS With Unattended Yum-Cron Security Updates

to do unattended security upgrades on CentOS, yum-cron can be used.

install yum-cron:
sudo yum install yum-cron

configure yum-cron and update the following:
update_cmd = security apply_updates = yes

start and enable yum-cron service:
sudo systemctl start yum-cron sudo systemctl enable yum-cron

if, in case you have problem installing because of conflicting files from yum-cron and yum installations, with a similar message as below:


do a yum update then try installing yum-cron again:
sudo yum update
sudo yum install yum-cron

(src: https://serversforhackers.com/c/automatic-security-updates-centos)

No comments:

Post a Comment

SSH : No matching host key type found. Their offer: ssh-rsa,ssh-dss

Got this while connecting to my mikrotik router via ssh   Unable to negotiate with <ip address> port <ssh port>: no matching hos...