Servers and cloud

Connect to a server with SSH

Log in to a remote server from your terminal, with a password or your SSH key.

Fill these in once
  1. Connect
    Terminal
    ssh ubuntu@203.0.113.10

    Type yes the first time to trust the server. Type exit to leave.

  2. On a different port
    Terminal
    ssh -p 2222 ubuntu@203.0.113.10
  3. With a specific key
    Terminal
    ssh -i ~/.ssh/id_ed25519 ubuntu@203.0.113.10
  1. Connect
    Terminal · Ubuntu / Debian
    ssh ubuntu@203.0.113.10

    Type yes the first time to trust the server. Type exit to leave.

  2. On a different port
    Terminal · Ubuntu / Debian
    ssh -p 2222 ubuntu@203.0.113.10
  3. With a specific key
    Terminal · Ubuntu / Debian
    ssh -i ~/.ssh/id_ed25519 ubuntu@203.0.113.10
  1. Connect
    PowerShell
    ssh ubuntu@203.0.113.10

    Type yes the first time to trust the server. Type exit to leave.

  2. On a different port
    PowerShell
    ssh -p 2222 ubuntu@203.0.113.10
  3. With a specific key
    PowerShell
    ssh -i "$env:USERPROFILE\.ssh\id_ed25519" ubuntu@203.0.113.10