Your CanSpace VPS or dedicated server gives you full root access — and SSH is how you get there. This article covers connecting from Linux, macOS, and Windows, plus the few quirks specific to our setup.

Quick reference: SSH on port 5622, username root, password from your New Account Information email.

What you'll need

  • The hostname or IP of your server (in your New Account Information email and in the client area under Services → Manage).
  • The root password we provisioned (or your own SSH key if you've already added one).
  • An SSH client. Linux and macOS have one built in. On Windows, the easiest options are the built-in OpenSSH client (Windows 10/11) or PuTTY.

Connect from Linux or macOS

  1. Open a terminal.
  2. Run the SSH command, replacing your-server.canspace.ca with your server's hostname:

    ssh -p 5622 [email protected]
  3. The first time you connect, accept the server's key fingerprint by typing yes.
  4. Enter your root password when prompted.

You'll land at a root shell prompt:

Terminal showing a successful SSH connection to a CanSpace VPS, with the root login banner and prompt

Connect from Windows (built-in OpenSSH)

Windows 10 and 11 ship with an OpenSSH client. Open PowerShell or Command Prompt and run:

ssh -p 5622 [email protected]

Same prompts as Linux/macOS. If ssh is not recognized, open Settings → Apps → Optional Features and add OpenSSH Client.

Connect from Windows (PuTTY)

  1. Download PuTTY from putty.org and install.
  2. Open PuTTY. In the Host Name field, enter your server hostname.
  3. In the Port field, enter 5622.
  4. Make sure Connection type is set to SSH.
  5. (Optional) Type a name into the Saved Sessions box and click Save so you don't have to retype the details next time.
  6. Click Open. Accept the host key fingerprint, then log in as root with your password.

Use SSH keys instead of a password (recommended)

Password authentication works, but key-based authentication is far more secure and convenient. Generate a key on your local machine, install the public key on the server, then disable password auth.

  1. On your local machine (Linux/macOS/Windows with OpenSSH), generate a key pair:

    ssh-keygen -t ed25519 -C "[email protected]"

    Press Enter to accept the default file location and (optionally) set a passphrase. Two files are created: ~/.ssh/id_ed25519 (private — keep secret) and ~/.ssh/id_ed25519.pub (public — safe to share).

  2. Copy the public key to your server:

    ssh-copy-id -p 5622 [email protected]

    Or, if ssh-copy-id isn't available, paste the contents of id_ed25519.pub into /root/.ssh/authorized_keys on the server (one key per line).

  3. Test the key login — it should not prompt for a password:

    ssh -p 5622 [email protected]
  4. Once key auth works, disable password authentication. Edit /etc/ssh/sshd_config on the server:

    PasswordAuthentication no

    Save and restart SSH: systemctl restart sshd (or service sshd restart on older systems).

Don't lock yourself out. Test key login in a new terminal session before you disable password authentication. Keep your existing root session open until you've confirmed everything works.

Common issues

"Connection timed out" or "Connection refused"

The most common cause is your IP being blocked by the server's firewall (CSF) after too many failed login attempts. See CSF firewall basics on your VPS to unblock yourself, or open a ticket from a different network and tell us your IP.

"Permission denied (publickey,password)"

Either the password you typed is wrong, or — if you've set up keys — your local SSH client isn't presenting the right key. Add -v to your ssh command to see what's happening (ssh -v -p 5622 [email protected]).

Forgot your root password

For VPS, we can reset it via the OVH control panel. Open a ticket; we'll set a new password and pass it back to you.

Related articles

Trouble connecting to your server? Open a support ticket

Ця відповідь Вам допомогла? 0 Користувачі, які знайшли це корисним (0 Голосів)