Your first login to a new VPS or dedicated server
Connect over SSH, update the system, create a sudo user and switch to SSH keys.
Updated 22 September 20262 min read7 views0 found this helpful
Applies to

On this page
Your welcome email contains the server IP address and root password. Secure the server before you install anything else.
Connect
On macOS, Linux or Windows Terminal:
ssh [email protected]On older Windows versions you can use PuTTY.
Update and add a user (Ubuntu / Debian)
apt update && apt -y upgrade
adduser deploy
usermod -aG sudo deployUpdate and add a user (AlmaLinux / Rocky)
dnf -y update
adduser deploy && passwd deploy
usermod -aG wheel deploySwitch to SSH keys
- On your computer run
ssh-keygen -t ed25519. - Copy the key:
ssh-copy-id [email protected]. - Log in as the new user to confirm it works.
- Edit
/etc/ssh/sshd_configand setPasswordAuthentication noandPermitRootLogin no, then restart SSH.
#VPS#SSH#Linux#security
Was this article helpful?
Your vote helps us write better guides.
