Complete guide to secure SSH on Linux servers.
# /etc/ssh/sshd_config key settings: Port 2222 PermitRootLogin no PasswordAuthentication no PubkeyAuthentication yes MaxAuthTries 3 LoginGraceTime 30 X11Forwarding no AllowUsers myuser