Knowledge Base

Connect to SSH on Pressable

Category: Tutorials | Last modified: October 17, 2022

SSH, or Secure Shell, is a protocol that allows you to connect to services such as web servers. This allows you to connect to our servers and manage your Pressable website via command-line tools such as WP-CLI.

Get SSH Credentials

If you are accessing SSH for the first time, you must create your credentials:

  1. From your my.pressable.com dashboard, go to Sites → Select the site you’d like to access via SSH → Users to access your site’s SSH options.
  2. You will see the SSH Username and SSH Password details. For the SSH Password, click the Reset button to generate a new password to use. These credentials will be used for both SSH and SFTP connections.
  3. Store the password in a safe place. If lost or forgotten, the Reset button can be used to generate a new one.
  4. You will also see the SSH URL information listed as well. That will be needed for the SSH connection command to connect to the site. See Connect to SSH section below for more details.

Reset an SSH Password

If you forget or lose your SSH password, you can reset it by returning your my.pressable.com dashboard and navigating to Sites → Select the site you’d like to access via SSH → Users, then select the Reset button to generate a new one:

Connect to SSH

To access your site via SSH, you will need your SSH Username, SSH Password, SSH URL, and a terminal program. Below are instructions to connect via some of the most common programs.

How to Connect to SSH on MacOS and Linux

Step 1: Open your computer’s terminal application.

    • On MacOS, visit Applications → Utilities on your computer and open the Terminal application.
    • On Linux, please consult your distribution’s documentation for more on opening a terminal window. Some versions may refer to the terminal program as a shell, console, or command prompt.

Step 2: From your my.pressable.com dashboard, go to Sites → Select the site you’d like to access via SSH → Users to access your site’s SSH options.

Step 3: Copy the SSH URL provided for your site. For example, [ssh-username]@ssh.atomicsites.net. The full ssh command to use will be ssh [ssh-username]@ssh.atomicsites.net.

  • Example: ssh pb93bd5bedf591466@ssh.atomicsites.net

Step 4: Paste or type the ssh command into your terminal application and press enter/return (ssh [ssh-username]@ssh.atomicsites.net).
  • If this is your first time connecting, your terminal may prompt that it cannot establish the authenticity of the host. Type yes and press enter/return to proceed.

Step 5: Your terminal should now prompt you to enter a password. Paste or type in the SSH Password provided when creating your SSH credentials and press enter.

    • Note that when entering your password into your terminal application, characters will not appear as you type. This is by design.

    • If your SSH password has been forgotten or lost, it can be reset.

If successful, you should now be connected to SSH and can begin running shell and WP-CLI commands.

How to Connect to SSH on Windows

Recent versions of Windows, starting with 10, have added SSH support via the Windows Subsystem for Linux as well as the OpenSSH client. Please consult Microsoft’s official documentation for using these methods.

Another option that is available for both current and older versions of Windows is PuTTY.

    1. Download and install the free PuTTY client.
    2. Start PuTTY, configure the Host Name and Port settings, and click Open
    • Host Name should be set to sftp.pressable.net

    • Port should be set to 22

    1. If this is your first time connecting, you may receive a prompt to trust the rsa2 fingerprint and host. Click Yes.
    2. PuTTY will launch a terminal screen. Enter your SSH Username and press Enter/return.
    3. When prompted, enter your SSH Password.

If successful, you should now be connected to SSH and can begin running shell and WP-CLI commands.

Connect to SSH with an SSH Key

You can avoid the need to enter a password by generating an SSH key for your device and then adding it to your my.pressable.com account:

For security reasons, only the following key types and lengths are allowed

  • ssh-rsa keys from 2048 to 16384 bits
  • ecdsa-sha2-nistp256 keys of 256 bits
  • ssh-ed25519 keys of 256 bits

Once you generate an SSH public and private key using the information in the links above, you can then add your public key to your Pressable account by logging into my.pressable.com and then navigating to Profile > Settings > SSH Keys

Once your SSH key is added to your Pressable account, you can use that along with your SSH Username to log into a site that you have SSH access to, instead of needing to use your SSH Password (more details here).

To connect via SSH, you still need to use the ssh username@ssh.atomicsites.net as the command to access a site via SSH, but shouldn’t need to enter a password to access the site (more details here).

What if Something Goes Wrong?

If something happens to your site after you’ve made changes via SSH, or if you run a command and something happens you didn’t expect, you can restore your site from a backup.

We will NOT be able to help you debug your command to make it work as expected.

Frequently Asked Questions

Can I get support for using command line tools?

Due to the complex nature of SSH and WP-CLI, we are not able to provide extensive support for using these tools. Our Support Team is available to help with issues connecting via SSH but cannot guide you through using commands.

Are all commands available?

In order to provide a secure and performant environment, Pressable may restrict or disable certain shell and WP-CLI commands.

Can I set my own SSH password?

The SSH Username and SSH Password are generated by the system automatically. These are unique to each site. If you have multiple sites, you’ll need to use multiple usernames and passwords, one for each site.

If you’d like to use your own password, you can generate an SSH Key and then add the key to your my.pressable.com account.