Log in to your VPS provider dashboard
Open Console / Web Console

You should see something like:
root@your-server-name:~#
This means:
β
You are logged in as root
Press:
Windows + R β type cmd β EnterRun:
ssh-keygenThen:
Press Enter (save location)
Press Enter (no passphrase)
Press Enter again
You will see:
Your public key has been saved in C:\Users\YourName\.ssh\id_ed25519.pubβ SSH key created successfully
Run:
type %USERPROFILE%\.ssh\id_ed25519.pubYou will see something like:
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAI... yourname@PCπ This is your PUBLIC KEY
π Keep it safe, but it is OK to paste on the server.
In VPS Console, run:
rm -rf ~/.ssh
mkdir ~/.ssh
chmod 700 ~/.ssh
Now add your public key:
echo 'PASTE_YOUR_PUBLIC_KEY_HERE' > ~/.ssh/authorized_keysExample:
echo 'ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIBrcDr4eyZ/B4ftfMWeUbqZ+tf4JIUrXRmV/QrH5KPDT user@PC' > ~/.ssh/authorized_keysSet permissions:
chmod 600 ~/.ssh/authorized_keysVerify:
cat ~/.ssh/authorized_keysβ If key shows correctly, setup is complete
From Windows CMD / PowerShell:
ssh root@YOUR_SERVER_IPExample:
ssh [email protected]Welcome to Ubuntu 22.04 LTS
root@your-server-name:~#You are connected!
After setup, you only run:
ssh root@YOUR_SERVER_IPThatβs it.
Only in these cases:
New laptop / PC
Windows reinstalled
VPS OS reinstalled
You deleted .ssh folder
Otherwise β never again.
If you face any issues while setting up SMTP, our support team at Cyberin is ready to help you configure it correctly.