SSH is a protocol for secure remote login and other secure network services over an insecure network. On our Google Cloud plans here at Kinsta we provide SSH access to your sites. SSH access allows you to log into a command prompt, perform common sysadmin tasks, and execute commands just as if you were sitting at the server itself. You also have the ability to run additional tools such as Git, Composer, npm, WP-CLI, etc. Follow the directions below on how to connect to SSH on your WordPress site.
SSH should be used by advanced users only. Running improper commands via SSH could easily break your site. If you are not comfortable doing this, please check with a developer or our support first.
SSH Access Login Info
To connect to SSH you’ll need the following pieces of information:
- server address (usually an IP address)
- port (we take security seriously here at Kinsta, each site uses a different port)
Kinsta customers can find this information under the site’s Info tab within your My Kinsta dashboard (as seen below)
connect to ssh – MyKinsta login information
How to Connect to SSH on Windows
For those of you running Windows you will need a terminal client to connect to SSH.
We recommend downloading the free PuTTY client.
Launch PuTTY and input your host name (Kinsta IP Address) and the unique port number. Then click “Open.”
If this is your first time connecting you will most likely see a rsa2 key prompt. Go ahead and click “Yes” which will trust the host in the future.
Putty Security Alert
You will need to input your Kinsta username and press Enter.
You will then be prompted to enter your password. Then press Enter.
You are now connected via SSH to your WordPress site.
Putty Successful Login
You can then run commands such as “ls” or “cd” to list items and navigate throughout your site’s directory. WP-CLI is also installed by default on all sites.
How to Connect to SSH on Mac/Linux
On Mac or Linux it is actually a lot easier to connect to SSH because the OS already has a terminal built into it.
All you need to do is open the terminal. Navigate to Applications > Utilities and double-click on Terminal.
Then enter the command in the following form (You can copy/paste this directly from your My Kinsta dashboard):
ssh username@hostname -p portnumber
If you have trouble connecting, you might need to reset your SSH password or delete entries from your known_hosts file.