If you use SSH, use mkpasswd command for creating passwords, always set the strong password, so that you won’t face the hacking issue because hackers always run the brute force attacks to crack the password therefore strong password always help to secure the server from the such attacks
root@admin[~]#mkpasswd -l 10 -d 3 -C 3 -s 2
L]4P@V6ii3