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
- On your computer, run
ssh-keygen -t ed25519and press Enter to accept the defaults. - Add the public key (the
.pubfile) to the server. In cPanel use SSH Access → Manage SSH Keys; on a VPS runssh-copy-id username@your-server. - 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
| Command | What it does |
|---|---|
ls -la | List files, including hidden ones |
cd folder | Move into a folder |
cp, mv, rm | Copy, move or delete files |
unzip file.zip | Extract an archive |
tail -f error_log | Watch a log file live |
du -sh * | See what uses disk space |
Stay safe
- Use keys and disable password logins on a VPS. See first 10 things to do on a VPS.
- Double-check
rmcommands; there's no recycle bin.
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.



