How to connect to your website via SSH

How to connect to your website via SSH

With SSH you can connect to your website via the command line – for example to use tools like WP-CLI, Git or Composer. You can log in with a password or with an SSH key.

Option A: Log in with a password

  1. In the Control Panel, open your website, click Advanced and choose Developer tools. Click SSH password authentication on the left.
  2. Copy the Login command with the copy icon, e.g. ssh -p 22 meinetes1@116.203.69.239.
  3. If you don't know the password, click Reset next to Password.
  4. Open a terminal on your computer (macOS: Terminal, Windows: PowerShell), paste the command, press Enter and enter the password.

SSH key manager and SSH password authentication with login command and Reset button

Option B: Log in with an SSH key

A key is more secure and convenient than a password. You need a key pair on your computer – you can create one in the terminal with ssh-keygen -t ed25519.

  1. Click SSH key manager on the left and then Add.
  2. Enter a Name for the key, e.g. the name of your computer.
  3. Paste your public key into the field Public key (usually the content of the file ~/.ssh/id_ed25519.pub) – or use Upload file.
  4. Click Upload.
Add SSH key form with name and public key

Afterwards you can connect with the same login command – without entering a password.

Info

Good to know: An SSH key applies to the whole website, not to a single domain.

Warning

Important: Only ever upload the public key (file ending .pub). Never share your private key – anyone who has it can access your website.