Connect to a site via SSH

You can connect to your site using SSH in order to run commands, using any standard SSH tool

Before you start : setting up your SSH keypair

If you haven't already, setup an SSH keypair

Finding SSH connection details

  1. Click on the site you want to connect to : on the settings tab ensure you have an SSH key.  If you don't currently have one see Setting up an SSH key
  2. Go to the Connect tab
  3. SSH connection details are in the section Connect to SSH to run shell commands.
    1. If you are on a Mac, a linux machine, or you use a linux VM (eg Vagrant or Virtualbox) then pasting the openssh commandline into a terminal should be sufficient
    2. On Windows:
      1. Windows 10 now includes OpenSSH - see here for docs on enabling it
      2. You can use Cygwin, or Git Bash, Windows subsystem for linux or a virtual machine and run openssh - in which case you can also paste the openssh commandline
      3. Alternatively if you prefer a more GUI approach use Putty or Kitty:
        1. Download and install PuTTY from the PuTTY download page. Be sure to install the entire suite.
        2. If you haven't already, ensure your private key is in the correct format for Putty: it uses a different format from OpenSSH .  Putty provides the PuttyGen tool which can convert OpenSSH keys to Putty compatible ones
        3. In the Host Name (or IP address) field, paste the User and  Host from idealstack in the format user@host (eg wordpress@54.79.82.255) and paste the Port in the Port field
        4. Under Connection > Auth > SSH in the config tree on the left, select your SSH key
        5. Click open, after a message about caching the host key (accept it), you'll be logged into your site

 

Troubleshooting

If you see this message, you still need to upload an SSH key.  See  Setting up an SSH key