The first thing to do after creating a VPS is to secure SSH access.
Use SSH keys
ssh-keygen -t ed25519
ssh-copy-id user@server
Disable password login
sudo nano /etc/ssh/sshd_config
# PasswordAuthentication no
sudo systemctl restart ssh
Danger
Do not close your current session until key login works from a new session.
Firewall
sudo ufw allow OpenSSH
sudo ufw enable
Comments 0
No comments yet. Be the first to comment.