Disable ssh by password | sed -i 's/PasswordAuthentication yes/PasswordAuthentication no/g' /etc/ssh/sshd_config |
Disable root login | sed -i 's/^PermitRootLogin yes/#PermitRootLogin yes/' /etc/ssh/sshd_config |
Enable/Disable SSH Host Key Checking | StrictHostKeyChecking yes change ~/.ssh/config |
Protect SSH server from brute force attacks | using fail2ban command-line tool |