Linux VPS

Connect with SSH

You manage a Linux VPS from a terminal over SSH. Every modern computer already has an SSH client.

Last updated

Connect

Open a terminal:

  • macOS: Terminal (in Applications, Utilities).
  • Linux: your terminal app.
  • Windows 10 and 11: PowerShell or Windows Terminal. SSH is built in.

Then run, using your server’s IP address:

ssh [email protected]

The first time, SSH shows the server’s fingerprint and asks if you want to continue. Type yes and press Enter. Then enter your password. Nothing appears while you type it; that’s normal.

When you see a prompt like root@your-server:~#, you’re in.

Log in with a key instead of a password

SSH keys are safer than passwords and save you typing. On your own computer:

ssh-keygen -t ed25519

Press Enter to accept the defaults. Then copy the key to your server:

ssh-copy-id [email protected]

On Windows, where ssh-copy-id isn’t available, run this in PowerShell instead:

type $env:USERPROFILE\.ssh\id_ed25519.pub | ssh [email protected] "mkdir -p ~/.ssh && cat >> ~/.ssh/authorized_keys"

Next time, ssh [email protected] logs you in without a password.

Copy files

Use scp from your computer:

scp ./backup.tar.gz [email protected]:/root/

Or use a graphical app such as FileZilla or WinSCP with the SFTP protocol, port 22, and the same login.

Troubleshooting

  • Connection timed out: check the IP address, and that your server shows as active in the client area.
  • Permission denied: the password is case sensitive. Paste it instead of typing.
  • Host key changed warning: you’ll see this after reinstalling the OS on the same IP. Remove the old entry with ssh-keygen -R 203.0.113.24 and connect again.