How to use SSH

SSH lets you work on your hosting account from a command line -- faster than clicking through cPanel for bulk jobs, and the only practical way to do some things, like importing a very large database. It's powerful, so it rewards a little care. This guide points you to the right starting place.

Getting connected

  • In your browser: log in to cPanel and open Advanced > Terminal.
  • From your computer: run ssh username@example.com in Terminal (Mac/Linux) or Windows Terminal/PowerShell. PuTTY also works: use your domain as the host, port 22 and connection type SSH.

Full steps, including setting up an SSH key, are in How to Use SSH, SSH Keys and Terminal in cPanel.

What to learn first

  1. Moving around and looking at files -- pwd, ls -la, cd, cat, less. See Basic Linux Commands for Managing Your Website over SSH.
  2. Editing a file -- nano filename is the simplest editor on the server. Save with Ctrl+O, exit with Ctrl+X.
  3. Managing WordPress -- WP-CLI (wp) is installed. See How to Manage WordPress from the Command Line with WP-CLI.

Stay safe

  • There's no undo. rm deletes immediately -- files removed over SSH don't go to File Manager's Trash. Make a backup before big changes.
  • Check where you are with pwd before deleting or moving anything.
  • Use an SSH key instead of a password, and never share your private key.
  • If a command's purpose isn't clear to you, ask in a ticket before running it -- especially commands copied from a forum.

Related guides

Still stuck? Open a support ticket and the Instant Access Internet Services team will help.

Ultrafast LiteSpeed hosting from InstantAccess.net: free SSL, free backups, cPanel included, no contracts. Check out our $10/month hosting.
  • 0 کاربر این را مفید یافتند
آیا این پاسخ به شما کمک کرد؟

مقالات مربوطه

Connecting to SSH

SSH gives you a secure command-line connection to your hosting account, for tasks like running...

How to Create an SSH Key on Windows, Mac and Linux and Add It to cPanel

An SSH key lets you log in to your hosting account's command line without typing your cPanel...

How to Fix "Permission Denied (publickey)" and Other SSH Connection Errors

SSH error messages are short and cryptic, but each one points to a specific cause. This guide...

How to Transfer Files Securely with SFTP and SCP

SFTP and SCP move files between your computer and your hosting account over an encrypted SSH...

Basic Linux Commands for Managing Your Website over SSH

You don't need to be a system administrator to get real work done on the command line. This guide...