Eliminate 99.9% of automated brute-force attacks by requiring cryptographic SSH keys for all logins
By following this guide, you will generate an ultra-secure Ed25519 SSH keypair on your local computer, install it onto your Linux server, and disable root password logins to completely neutralize dictionary attacks.
Spin up an Ubuntu 24.04 instance with instant activation to test this tutorial:
Deploy IndSoft VPSAny Linux server running OpenSSH server. Recommended for all newly provisioned IndSoft VPS instances.
Run ssh-keygen locally using the modern, high-speed Ed25519 elliptic curve algorithm.
ssh-keygen -t ed25519 -C "admin@example.com"Use ssh-copy-id to append your public key to ~/.ssh/authorized_keys on the server.
ssh-copy-id -i ~/.ssh/id_ed25519.pub user@YOUR_SERVER_IPOnce key login is verified, disable password authentication and direct root login.
sudo nano /etc/ssh/sshd_config
# Set: PasswordAuthentication no
# Set: PermitRootLogin prohibit-password
# Set: PubkeyAuthentication yes
sudo systemctl restart sshRun this quick verification check to confirm your installation is responding properly:
ssh -o PasswordAuthentication=no user@YOUR_SERVER_IPQuick resolutions for frequent setup pitfalls and configuration issues.
PasswordAuthentication yes.
chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys.
/etc/ssh/sshd_config.d/ for drop-in configuration files that may override the main sshd_config.