Knowledgebase article

How to use SSH access with your hosting account

SSH lets you talk to the server directly with commands, for running WP-CLI, Composer, Git, or quickly unzipping large files. It's for the more technical lovers among you.

Connect from your computer with an SSH key

SSH uses a key instead of a password, which is much safer.

1. Create a key in cPanel

  1. Go to Security > SSH Access and click Manage SSH Keys.
  2. Click Generate a New Key.
  3. Give it a name, set a strong Key Password, and click Generate Key.
  4. Go back, find the key under Public Keys and click Manage, then Authorize.
  5. Under Private Keys, click View/Download and download the key. (For PuTTY on Windows, click Convert to get a .ppk file.)

2. Connect

Mac, Linux or Windows Terminal

ssh -i ~/path/to/privatekey cpanelusername@your-server-hostname -p 22

PuTTY (Windows): enter the server hostname under Session, port 22; then under Connection > SSH > Auth > Credentials, choose your .ppk file, and click Open. Log in with your cPanel username.

Your server hostname and SSH port are in your welcome email. If the connection is refused, SSH may not be enabled for your plan yet. Open a ticket and Romeo will check.

Some handy commands

Command What it does
cd public_html go into your website folder
ls -la list files, including hidden ones
unzip site.zip extract a ZIP file
wp plugin list list WordPress plugins (run inside the WordPress folder)
du -sh * see the size of each folder

Be careful: commands like rm -rf delete files instantly with no trash bin. Double-check before pressing Enter.

Was this answer helpful?

Related articles

Still stuck? Romeo's got you.
Our support team replies around the clock, real humans who know your server.