Centos: yum update Ubuntu: apt-get update && apt-get upgrade
Disable SSH password authentication.
Restrict root from logging in remotely.
PasswordAuthentication yes PermitRootLogin yes
PasswordAuthentication no PermitRootLogin no
$ sudo service sshd restart