SSH & SFTP

InstaWP allows you to access a site's filesystem or run commands using SFTP & SSH.

📘

Pro Feature

Accessing FTP & SSH is a pro feature.

Enable SFTP

Once your key is setup in the profile, you can enable FTP and SSH depending on which plan you are on.

To enable SFTP access, open the "Access FTP/SSH" dropdown for the site.

Then toggle, the SFTP settings and you will see a username and Host name to connect.

Copy all the details and open FileZilla (or any other FTP client).

Enable SSH

Enabling SSH access is very similar to FTP, in the same modal box, go to SSH tab and enable SSH.

You will see the same username and IP address (as you did in the FTP step). Copy these details and open your SSH terminal. or use the "SSH Command" to copy paste the SSH command.

Enter the following command to connect via SSH

ssh [email protected]

ssh terminal

📘

Guide for Windows User

Follow this guide if you are using Windows https://instawp.com/accessing-sftp-ssh-on-instawp/

🚧

Note about SSH

  1. You can only run commands with user level permission, root access is not provided.
  2. You need to cd to web/yoursitename/public_html to run wp cli commands.

Using SSH Key (password-less login)

If you want to avoid using password everytime you login to a site, you can configure a SSH key.

Configuring SSH Keys

Copy your ssh key from ~/.ssh/id_rsa.pub file from your local machine.

📘

SSH Key

If you don't have a ssh key, you can generate one. To learn more about it, check this guide from Oracle or this one for Windows machines (using putty).

ssh key copy

Navigate to SSH Keys and add a new key.

Using SSH Keys

To use a SSH key for a particular InstaWP site, simply click on toggle and it will add the SSH key to the site.