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 SSH on an Arch Linux VPS—install OpenSSH with
pacman -S openssh
then edit /etc/ssh/sshd_config with
nano /etc/ssh/sshd_config
Set Port 2222 PermitRootLogin no and PasswordAuthentication no Start SSH with
systemctl start sshd && systemctl enable sshd
Generate keys locally (ssh-keygen -t ed25519) copy with
ssh-copy-id -p 2222 user@ip
and test with
ssh -p 2222 user@ip
—expect key auth Open port with
iptables -A INPUT -p tcp --dport 2222 -j ACCEPT
saving via
iptables-save > /etc/iptables/iptables.rules
On Vultr this ensures CLI access—verify uptime with uptime maintaining MySQL and FTP security

Back to All Tips