Web Hosting & VPS Tips

Unleash Your Server Potential with Expert Insights

Hosting provided by: Cloudways
Free to Try! Up to 40% Off!

Category: VPS Setup

Secure Fedora VPS logins with SSH keys—generate a key pair locally with
ssh-keygen -t ed25519 -b 256
(e g save as /home/user/ ssh/fedora_vps) then upload the public key with
ssh-copy-id -i ~/.ssh/fedora_vps.pub user@ip
Edit /etc/ssh/sshd_config with
nano /etc/ssh/sshd_config
setting PasswordAuthentication no and PubkeyAuthentication yes Restart SSH with
systemctl restart sshd
and test with
ssh -i ~/.ssh/fedora_vps user@ip
—expect no password prompt Open port 22 with
firewall-cmd --add-service=ssh --permanent
On Hetzner this locks down CLI access ensuring safe MySQL and FTP management with minimal risk

Back to All Tips