Unleash Your Server Potential with Expert Insights
Hosting provided by: CloudwaysSponsored by: shopp.bio
Sponsored by: shopp.bio
Category: VPS Setup
nano /etc/ssh/sshd_config
Port 2222
to avoid common scans PermitRootLogin no
to disable root access and PasswordAuthentication no
for key-only logins Generate keys locally withssh-keygen -t rsa -b 4096
ssh-copy-id user@ip -p 2222
systemctl restart sshd
ssh -p 2222 user@ip