Short answerRun ssh root@your-server-ip in a terminal, accept the fingerprint and enter your password. Then switch to SSH keys and turn off password login.
What you need
- The IP address of your VPS (shown in your Hunati client area).
- The root password or an SSH key.
- A terminal: Windows Terminal or PowerShell on Windows 10/11, Terminal on macOS and Linux.
Connect
Open your terminal and run the command below, replacing the address with your server IP. Type yes the first time to trust the server fingerprint, then enter your password.
ssh root@203.0.113.10Cannot connect at all? Use the VNC console in the client area: it gives you a screen on the server even when SSH or the network configuration is broken.
Switch to SSH keys
SSH keys are safer than passwords. Create a key on your own computer and copy it to the server:
ssh-keygen -t ed25519
ssh-copy-id root@203.0.113.10On Windows without ssh-copy-id, paste the contents of your .pub file into ~/.ssh/authorized_keys on the server.
First security steps
- Update the system:
apt update && apt upgradeon Ubuntu and Debian, ordnf upgradeon Rocky Linux and AlmaLinux. - Create a normal user with sudo rights and log in with that user.
- Disable password login and root login in /etc/ssh/sshd_config (PasswordAuthentication no, PermitRootLogin no), then restart SSH.
- Enable a firewall:
ufw allow OpenSSHandufw enableon Ubuntu, or firewalld on Rocky Linux. - Install fail2ban to block repeated login attempts.
Need a fast Linux server?
Get a KVM VPS