Good SSH Settings Add key to ~/.ssh/authorized_keys Changes to /etc/ssh/sshd_config: Protocol 2 add above Port 22 Port 9001 PasswordAuthentication no X11Forwarding no ClientAliveInterval 300 MaxAuthTries 3 PermitRootLogin no Then run sudo systemctl restart ssh