Skip to content
Free website migration on every plan, done by our team.Learn more ›
Servers

How to use SSH to manage your hosting

What SSH is, how to connect to your hosting or VPS from Windows, macOS, Linux or a phone, how to set up SSH keys and the commands you'll use most.

Short answer: SSH (Secure Shell) is an encrypted way to log in to a server's command line. Open a terminal and run ssh username@your-server (adding -p and a port number if your host uses a custom port). For better security, log in with an SSH key instead of a password.

What you can do with SSH

  • Move, unzip and edit files quickly
  • Run WordPress tasks with WP-CLI
  • Check logs while you troubleshoot
  • Manage a VPS: install software, update packages and restart services

How to connect

  • Windows 10 and 11, macOS and Linux: open Terminal or PowerShell and run ssh username@your-server.
  • Phones: use a trusted SSH app from your app store.
  • Shared hosting: find your username and server name in cPanel. If you don't see SSH access, ask support to enable it.

Set up SSH keys

  1. On your computer, run ssh-keygen -t ed25519 and press Enter to accept the defaults.
  2. Add the public key (the .pub file) to the server. In cPanel use SSH Access → Manage SSH Keys; on a VPS run ssh-copy-id username@your-server.
  3. Connect again: no password needed, and nobody can guess their way in.

Never share your private key, the file without .pub.

Commands you'll use most

CommandWhat it does
ls -laList files, including hidden ones
cd folderMove into a folder
cp, mv, rmCopy, move or delete files
unzip file.zipExtract an archive
tail -f error_logWatch a log file live
du -sh *See what uses disk space

Stay safe

Frequently asked questions

Is SSH the same as SFTP?

SFTP runs over SSH and is used for file transfers. See FTP vs SFTP.

Do I need SSH for WordPress?

No, but it makes some tasks much faster, such as bulk changes with WP-CLI.

What if I'm locked out?

Use cPanel's File Manager or your VPS console, or contact support.

Ready when you are

Host it where it performs

NVMe speed, offshore privacy and a written SLA — live in minutes on AuroxHost.