What Is SSH?
SSH (Secure Shell) provides encrypted command-line access to your hosting server. It allows you to manage files, run scripts, use Git, and perform administrative tasks directly on the server without needing a web-based interface.
Enabling SSH Access
- Log into the SillyHost client area
- Navigate to Services > Your Hosting Package
- Click Enable SSH Access (SSH is available on Business hosting plans and above)
- Once enabled, your SSH credentials will be displayed
Connecting via SSH
Open a terminal application and use the following command:
ssh username@yourdomain.com -p 22
Replace username with your cPanel username and yourdomain.com with your server hostname. You will be prompted for your cPanel password.
Setting Up SSH Keys (Recommended)
Password-based authentication works but SSH keys are more secure and convenient:
- Generate a key pair – On your local machine, run:
ssh-keygen -t ed25519 -C "your@email.com" - Copy the public key – Display it with:
cat ~/.ssh/id_ed25519.pub - Add it to cPanel – Go to Security > SSH Access > Manage SSH Keys > Import Key. Paste your public key and click Import.
- Authorise the key – Click Manage next to the imported key and then Authorize.
- Connect – You can now connect without a password:
ssh username@yourdomain.com
Common SSH Commands
ls -la– List all files including hidden onescd public_html– Navigate to your web rootnano filename.php– Edit a file in the terminaltar -czf backup.tar.gz public_html/– Create a compressed backupmysql -u dbuser -p dbname– Connect to your databasewp plugin list– List WordPress plugins (if WP-CLI is available)
Security Tips
Always use SSH keys instead of passwords where possible. Never share your private key. If you suspect your key has been compromised, remove it from cPanel immediately and generate a new one.