📢 LordCloud support has moved to Ballastra — Join now →
Docs

Connecting through SSH

Connect to a Linux VPS from Windows, macOS or Linux, and set up SSH keys.

1 min read
On this page

SSH gives you a secure terminal on your VPS.

From Windows 10/11, macOS or Linux#

Windows 10 and 11 include OpenSSH. Open Terminal (or PowerShell) and run:

bash
ssh root@YOUR_SERVER_IP

Type yes to trust the server's fingerprint on first connect, then enter the password. The password doesn't show as you type — that's normal.

If SSH runs on a custom port:

bash
ssh -p 2222 root@YOUR_SERVER_IP

Keys are far safer than passwords.

1. Create a key on your own computer:

bash
ssh-keygen -t ed25519 -C "my-laptop"

Press Enter to accept the default location and set a passphrase.

2. Copy the public key to the server. On macOS/Linux:

bash
ssh-copy-id root@YOUR_SERVER_IP

On Windows (PowerShell):

powershell
type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh root@YOUR_SERVER_IP "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys && chmod 700 ~/.ssh && chmod 600 ~/.ssh/authorized_keys"

3. Test: ssh root@YOUR_SERVER_IP should now log in without the server password.

Common errors#

Error Meaning
Connection timed out Wrong IP, the VPS is off, or a firewall blocks port 22
Connection refused SSH isn't running or is on a different port
Permission denied Wrong password or key, or root login disabled
REMOTE HOST IDENTIFICATION HAS CHANGED The VPS was reinstalled. Remove the old entry: ssh-keygen -R YOUR_SERVER_IP
Have a question? Chat with us👋