Fork me on GitHub

Summary: This page contains information for connecting into your site using SSH.

Obtaining your Credentials

After ordering your instance from you’ll get email which include your credentials. It looks something like this:

Port: 12345
User: example-site
Pass: 123456abcdefgh
Important: Use your own credentials instead of these. These are just an example and won't work!

Configuring SSH

We advice you to use ~/.ssh/config file for easier ssh management.

Add following lines to your config:

Host example-site
  User example-site
  Port 12345
  ForwardAgent yes

Optional: ForwardAgent yes - allows you to use your ssh credentials in the production machine to access private code from Github or Bitbucket.

Using SSH-key authentication

We advice you to use ssh key instead of password for accessing your site. Read more about generating ssh keys.

Using Vagrant SSH

Keep in mind when using use the vagrant ssh command to enter your Vagrant box, SSH ForwardAgent is automatically enabled and your personal keys are used to access the production environment. These are used for wp-ssh-production or wp-pull-production-db. The Vagrant image itself does not contain any private SSH keys.

OS X users: You can install ssh-copy-id with homebrew:

$ brew install ssh-copy-id

Windows users: Install your ssh key through Putty instead

After the following step you have succesfully installed your ssh key into your WP instance:

# This will install your ssh-key into your Seravo instance.
# Remember we set your credentials in the last step and the name of your site won't be example-site
$ ssh-copy-id example-site

The authenticity of host '[]:12345 ([]:12345)' cant be established.
RSA key fingerprint is xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy:xy.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '[]:12345' (RSA) to the list of known hosts.'s password:

# After you enter your password you have installed your ssh key.
# After this setup you can login to your instance by:
$ ssh example-site